Skip to content

Commit 79670de

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
[GM3Restyling] Update history dropdown combobox styles
Screenshot: https://imgur.com/a/lQMqbRw Bug: 368246828 Change-Id: I3803fd6d22fa529f0e5ebc8512a3a54f94a0bf64 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5971353 Auto-Submit: Kateryna Prokopenko <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]>
1 parent 04eb476 commit 79670de

File tree

1 file changed

+33
-19
lines changed

1 file changed

+33
-19
lines changed

front_end/panels/timeline/historyToolbarButton.css

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,40 @@
99
}
1010

1111
.history-dropdown-button {
12-
width: 160px;
13-
height: 26px;
12+
width: var(--sys-size-23);
13+
height: var(--sys-size-9);
14+
border-radius: var(--sys-shape-corner-extra-small);
1415
text-align: left;
1516
display: flex;
16-
border: 1px solid transparent;
17-
}
17+
padding-right: var(--sys-size-5);
18+
19+
&:hover {
20+
background-color: var(--sys-color-state-hover-on-subtle);
21+
}
22+
23+
&:active {
24+
background-color: var(--sys-color-state-ripple-neutral-on-subtle);
25+
}
26+
27+
&:hover:active {
28+
background:
29+
linear-gradient(var(--sys-color-state-hover-on-subtle), var(--sys-color-state-hover-on-subtle)),
30+
linear-gradient(var(--sys-color-state-ripple-neutral-on-subtle), var(--sys-color-state-ripple-neutral-on-subtle));
31+
}
1832

19-
.history-dropdown-button[disabled] {
20-
opacity: 50%;
21-
border: 1px solid transparent;
33+
&:focus-visible {
34+
outline: var(--sys-size-2) solid var(--sys-color-state-focus-ring);
35+
}
36+
37+
&[disabled] {
38+
pointer-events: none;
39+
color: var(--sys-color-state-disabled);
40+
background-color: var(--sys-color-state-disabled-container);
41+
42+
.content::after {
43+
background-color: var(--sys-color-state-disabled);
44+
}
45+
}
2246
}
2347

2448
.history-dropdown-button > .content {
@@ -37,21 +61,11 @@
3761
content: "";
3862
position: absolute;
3963
background-color: var(--icon-default);
40-
right: -3px;
64+
right: var(--sys-size-3);
65+
top: var(--sys-size-3);
4166
}
4267
}
4368

44-
.history-dropdown-button:focus-visible::before {
45-
content: "";
46-
position: absolute;
47-
top: 2px;
48-
left: 0;
49-
right: 0;
50-
bottom: 2px;
51-
border-radius: 2px;
52-
background: var(--divider-line);
53-
}
54-
5569
@media (forced-colors: active) {
5670
.history-dropdown-button[disabled] {
5771
opacity: 100%;

0 commit comments

Comments
 (0)