Files
react-native-devtools-frontend/front_end/ui/softDropDownButton.css
T
Jack Franklin 49a9481a74 Lint color usage in background and border-* properties.
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>
2021-02-05 15:39:39 +00:00

51 lines
1.0 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.
*/
button.soft-dropdown {
height: 26px;
text-align: left;
position: relative;
border: none;
background: none;
}
button.soft-dropdown[disabled] {
opacity: 50%;
}
button.soft-dropdown > .title {
padding-right: 5px;
width: 120px;
overflow: hidden;
text-overflow: ellipsis;
}
button.soft-dropdown:focus-visible::before {
content: "";
position: absolute;
top: 2px;
left: 2px;
right: 2px;
bottom: 2px;
border-radius: 2px;
background: rgb(0 0 0 / 8%); /* stylelint-disable-line plugin/use_theme_colors */
/* See: crbug.com/1152736 for color variable migration. */
}
@media (forced-colors: active) {
button.soft-dropdown {
border: 1px solid ButtonText;
}
button.soft-dropdown[disabled] {
opacity: 100%;
}
button.soft-dropdown:disabled > .smallicon-triangle-down {
background-color: GrayText;
}
}