mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-19 00:10:00 +00:00
fix(ui): restore toolbar icon hover feedback (#2990)
Toolbar and tool window icon buttons (IconButton) paint --bg-toolbar-hover across their hit target again, so hovering shows the clickable area. Disabled buttons stay transparent; pressed, selected, focus ring and icon colours are unchanged. The hover colours match the toolbar tokens already used for the pressed state in Islands Light and Dark. Co-authored-by: Mr0Bread <55754540+Mr0Bread@users.noreply.github.com>
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
color: var(--fg-faint);
|
||||
}
|
||||
|
||||
/* Toolbar / action buttons: transparent on hover, filled when pressed or selected. */
|
||||
/* Toolbar / action buttons share the toolbar hover, pressed and selected tokens. */
|
||||
.iconButton {
|
||||
flex: none;
|
||||
display: inline-flex;
|
||||
@@ -89,6 +89,7 @@
|
||||
outline-offset: -2px;
|
||||
}
|
||||
.iconButton:not(:disabled):hover {
|
||||
background: var(--bg-toolbar-hover);
|
||||
color: var(--fg-strong);
|
||||
}
|
||||
.iconButton:not(:disabled):active {
|
||||
|
||||
Reference in New Issue
Block a user