mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 14:14:36 +08:00
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>
109 lines
2.8 KiB
CSS
109 lines
2.8 KiB
CSS
/*
|
|
* Copyright 2015 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.
|
|
*/
|
|
|
|
.object-properties-section-dimmed {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.object-properties-section {
|
|
padding: 0 0 0px 0px;
|
|
color: rgb(33,33,33) !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.object-properties-section li {
|
|
user-select: text;
|
|
}
|
|
|
|
.object-properties-section li::before {
|
|
top: -1px;
|
|
}
|
|
|
|
.object-properties-section li.editing-sub-part {
|
|
padding: 3px 12px 8px 6px;
|
|
margin: -1px -6px -8px -6px;
|
|
text-overflow: clip;
|
|
}
|
|
|
|
.object-properties-section li.editing {
|
|
margin-left: 10px;
|
|
text-overflow: clip;
|
|
}
|
|
|
|
.tree-outline ol.title-less-mode {
|
|
padding-left: 0px;
|
|
}
|
|
|
|
.object-properties-section .synthetic-property {
|
|
font-style: italic;
|
|
}
|
|
|
|
.object-properties-section .private-property-hash {
|
|
color: #222;
|
|
}
|
|
|
|
.object-properties-section-root-element {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.object-properties-section .editable-div {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.name-and-value {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
line-height: 16px;
|
|
}
|
|
|
|
.editing-sub-part .name-and-value {
|
|
overflow: visible;
|
|
display: inline-flex;
|
|
}
|
|
|
|
.property-prompt {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] {
|
|
background: none;
|
|
}
|
|
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] ::slotted(*),
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] .tree-element-title,
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] .name-and-value {
|
|
background: var(--focus-bg-color);
|
|
border-radius: 2px;
|
|
box-shadow: 0px 0px 0px 2px var(--focus-bg-color);
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
.object-properties-section-dimmed {
|
|
opacity: 1;
|
|
}
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] {
|
|
background: Highlight;
|
|
}
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] .tree-element-title,
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] .name-and-value {
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] span,
|
|
.tree-outline.hide-selection-when-blurred .selected:focus[data-keyboard-focus="true"] .gray-info-message {
|
|
color: HighlightText;
|
|
}
|
|
.tree-outline-disclosure:hover li.parent::before {
|
|
background-color: ButtonText;
|
|
}
|
|
.tree-outline li:hover .tree-element-title,
|
|
.tree-outline li.selected .tree-element-title {
|
|
color: ButtonText;
|
|
}
|
|
}
|