浏览代码

fix(ui): use icon-strong-base for active titlebar icon buttons

David Hill 6 月之前
父节点
当前提交
a69b339baf
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 4 0
      packages/ui/src/components/button.css
  2. 4 0
      packages/ui/src/components/icon-button.css

+ 4 - 0
packages/ui/src/components/button.css

@@ -179,6 +179,10 @@
   background-color: var(--surface-base-active);
 }
 
+[data-component="button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"] [data-slot="icon-svg"] {
+  color: var(--icon-strong-base);
+}
+
 [data-component="button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"]:hover:not(:disabled) {
   background-color: var(--surface-base-active);
 }

+ 4 - 0
packages/ui/src/components/icon-button.css

@@ -176,6 +176,10 @@
   background-color: var(--surface-base-active);
 }
 
+[data-component="icon-button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"] [data-slot="icon-svg"] {
+  color: var(--icon-strong-base);
+}
+
 [data-component="icon-button"].titlebar-icon[data-variant="ghost"][aria-expanded="true"]:hover:not(:disabled) {
   background-color: var(--surface-base-active);
 }