Commit f4a585a3 authored by John Lee's avatar John Lee Committed by Commit Bot

WebUI: Remove --cr-list-item-focus and --cr-selectable-focus mixins

This CL removes the unused --cr-list-item-focus mixin and moves all
the CSS properties/values from --cr-selectable-focus to the only
place where they were being used.

https://imgur.com/a/yFz9k61

Bug: 973674
Change-Id: I95f93fcfee6dc7b77ce5180a7875a1b526f066e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1710852Reviewed-by: default avatarHector Carmona <hcarmona@chromium.org>
Commit-Queue: John Lee <johntlee@chromium.org>
Cr-Commit-Position: refs/heads/master@{#679323}
parent 6216f04f
......@@ -27,7 +27,7 @@
-webkit-tap-highlight-color: transparent;
}
/* Override --cr-selectable-focus mixin. */
/* Override CSS from cr_elements/shared_style_css.html. */
[selectable]:focus,
[selectable] > :focus {
background-color: transparent;
......
......@@ -56,10 +56,6 @@
[scrollable].can-scroll:not(.scrolled-to-bottom) {
border-bottom-color: var(--scrollable-border-color);
}
[scrollable] iron-list > :not(.no-outline):focus {
@apply --cr-list-item-focus;
@apply --cr-selectable-focus;
}
.scroll-container {
display: flex;
......@@ -68,8 +64,10 @@
}
[selectable]:focus,
[selectable] > :focus {
@apply --cr-selectable-focus;
[selectable] > :focus,
[scrollable] iron-list > :not(.no-outline):focus {
background-color: var(--cr-focused-item-color);
outline: none;
}
[selectable] > * {
cursor: pointer;
......
......@@ -205,10 +205,6 @@
padding: 10px 8px;
}
--cr-selectable-focus: {
background-color: var(--cr-focused-item-color);
outline: none;
}
--cr-separator-height: 1px;
--cr-separator-line: var(--cr-separator-height) solid
var(--cr-separator-color);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment