Skip to content

Commit 38c4316

Browse files
Kateryna ProkopenkoDevtools-frontend LUCI CQ
authored andcommitted
[GM3Restyling] Update Network filter bar combobox styles
Bug: 368246828 Change-Id: I124a35f54db30627f493a4192e6802995846a129 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5961599 Auto-Submit: Kateryna Prokopenko <[email protected]> Commit-Queue: Kateryna Prokopenko <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]>
1 parent c874463 commit 38c4316

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

front_end/ui/legacy/filter.css

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,36 @@
148148

149149
.dropdown-filterbar {
150150
justify-content: space-between;
151-
padding: 0 3px 0 5px;
152-
border: 1px solid transparent;
153-
border-radius: 7px;
151+
align-items: center;
152+
height: var(--sys-size-9);
153+
padding: 0 var(--sys-size-3) 0 var(--sys-size-5);
154+
border: none;
155+
border-radius: var(--sys-shape-corner-extra-small);
154156
display: flex;
155157
background-color: transparent;
156158
color: var(--sys-color-on-surface-subtle);
157159

158160
.toolbar-dropdown-arrow {
159-
top: 1px;
161+
top: var(--sys-size-2);
160162
}
161-
}
162163

163-
button.toolbar-item:focus-visible {
164-
background: var(--sys-color-state-hover-on-subtle);
165-
border-radius: 2px;
164+
&:hover {
165+
background-color: var(--sys-color-state-hover-on-subtle);
166+
}
167+
168+
&:active {
169+
background-color: var(--sys-color-state-ripple-neutral-on-subtle);
170+
}
171+
172+
&:hover:active {
173+
background:
174+
linear-gradient(var(--sys-color-state-hover-on-subtle), var(--sys-color-state-hover-on-subtle)),
175+
linear-gradient(var(--sys-color-state-ripple-neutral-on-subtle), var(--sys-color-state-ripple-neutral-on-subtle));
176+
}
177+
178+
&:focus-visible {
179+
outline: 2px solid var(--sys-color-state-focus-ring);
180+
}
166181
}
167182

168183
@media (forced-colors: active) {

0 commit comments

Comments
 (0)