Browse Source

fix: remove the selected state from button when select deselected

David Hill 2 tháng trước cách đây
mục cha
commit
96b9ff8d0e
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      packages/ui/src/components/select.css

+ 12 - 0
packages/ui/src/components/select.css

@@ -27,6 +27,18 @@
         background-color: var(--icon-strong-active);
       }
     }
+
+    &:not([data-expanded]):focus {
+      &[data-variant="secondary"] {
+        background-color: var(--button-secondary-base);
+      }
+      &[data-variant="ghost"] {
+        background-color: transparent;
+      }
+      &[data-variant="primary"] {
+        background-color: var(--icon-strong-base);
+      }
+    }
   }
 }