mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 21:54:47 +08:00
High contrast work on Sources debugger panel
The changes fixes the hover and and keyboard focus on the panel. The header gets a focus ring and when hovering or focusing the content item, the background and foreground changes. Before: https://imgur.com/a/gZD8xLg After: https://imgur.com/a/LVruJ6P Bug: 1048378 Change-Id: If697639f8a5b7d73844e1aab63c9bb2db884b295 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2055546 Commit-Queue: Kham Udom <khamu@microsoft.com> Reviewed-by: Mathias Bynens <mathias@chromium.org>
This commit is contained in:
@@ -46,3 +46,15 @@
|
||||
background-color: hsl(46, 98%, 22%);
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
@media (forced-colors: active) {
|
||||
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover,
|
||||
.breakpoint-entry:focus {
|
||||
forced-color-adjust: none;
|
||||
background-color: Highlight;
|
||||
}
|
||||
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover > *,
|
||||
.breakpoint-entry:focus > * {
|
||||
color: HighlightText;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user