mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 05:35:05 +08:00
The list of CSS properties we check for colors wasn't thorough and didn't include `border-left/right/top/bottom` or `background` on its own. This CL fixes that and disables the rule for any current violations. Bug: 1152736 Change-Id: Ic732d653fdfab0462a04dc891bcece1f44e5d471 No-Presubmit: true Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2676157 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org> Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
64 lines
2.0 KiB
CSS
64 lines
2.0 KiB
CSS
/*
|
|
* Copyright (c) 2014 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.
|
|
*/
|
|
|
|
::slotted(input.dt-radio-button) {
|
|
--gradient-start: #fcfcfc;
|
|
--gradient-end: #dfdfdf;
|
|
--radio-dot: url(Images/radioDot.png);
|
|
|
|
height: 17px;
|
|
width: 17px;
|
|
min-width: 17px;
|
|
border: 1px solid #a5a5a5; /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
background-image: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end)); /* stylelint-disable-line plugin/use_theme_colors */
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
border-radius: 8px;
|
|
appearance: none;
|
|
vertical-align: middle;
|
|
margin: 0 5px 5px 0;
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:checked) {
|
|
/* See: crbug.com/1152736 for color variable migration. */
|
|
/* stylelint-disable-next-line plugin/use_theme_colors */
|
|
background: var(--radio-dot) center no-repeat, linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:focus) {
|
|
box-shadow: var(--focus-ring-active-shadow);
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button) {
|
|
--gradient-start: #030303;
|
|
--gradient-end: #202020;
|
|
--radio-dot: url(Images/radioDot-dark-theme.png);
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:checked:active),
|
|
::slotted(input.dt-radio-button:active:not(:disabled)) {
|
|
--gradient-start: #c2c2c2;
|
|
--gradient-end: #efefef;
|
|
}
|
|
|
|
:host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button:checked:active),
|
|
:host-context(.-theme-with-dark-background) ::slotted(input.dt-radio-button:active:not(:disabled)) {
|
|
--gradient-start: #3d3d3d;
|
|
--gradient-end: #101010;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
::slotted(input.dt-radio-button) {
|
|
--gradient-start: ButtonFace;
|
|
--gradient-end: ButtonFace;
|
|
}
|
|
|
|
::slotted(input.dt-radio-button:checked) {
|
|
--gradient-start: Highlight;
|
|
--gradient-end: Highlight;
|
|
}
|
|
}
|