Files
react-native-devtools-frontend/front_end/sources/javaScriptBreakpointsSidebarPane.css
T
Kham Udom e991071f67 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>
2020-02-14 16:06:43 +00:00

61 lines
1.4 KiB
CSS

/*
* Copyright 2017 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.breakpoint-entry {
padding: 3px 8px 3px 8px;
min-height: 18px;
line-height: 15px;
border-top: 1px solid #efefef;
}
.breakpoint-entry:focus {
background-color: var(--focus-bg-color);
}
.breakpoint-entry [is=dt-checkbox] {
max-width: 100%;
white-space: nowrap;
}
:not(.breakpoints-list-deactivated) > .breakpoint-entry:hover {
background-color: #eee;
}
.breakpoint-entry > .source-text {
cursor: pointer;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
margin-left: 22px;
}
.breakpoints-list-deactivated {
background-color: #eee;
opacity: 0.3;
}
.breakpoint-hit {
background-color: rgb(255, 255, 194);
border-right: 3px solid rgb(107, 97, 48);
}
:host-context(.-theme-with-dark-background) .breakpoint-hit {
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;
}
}