summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/button.css
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-23 06:33:52 -0500
committerAdam <[email protected]>2025-10-24 12:16:32 -0500
commit35dec0649db8f46bffd7121af9cd301668e69e8c (patch)
tree0f283d42503b05706233f04fe80b4159d4dfdb06 /packages/ui/src/components/button.css
parent78a7f7914369f3945fbe8dd0f570bd9960199780 (diff)
downloadopencode-35dec0649db8f46bffd7121af9cd301668e69e8c.tar.gz
opencode-35dec0649db8f46bffd7121af9cd301668e69e8c.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src/components/button.css')
-rw-r--r--packages/ui/src/components/button.css16
1 files changed, 14 insertions, 2 deletions
diff --git a/packages/ui/src/components/button.css b/packages/ui/src/components/button.css
index 7bf096853..0db3fcf37 100644
--- a/packages/ui/src/components/button.css
+++ b/packages/ui/src/components/button.css
@@ -45,6 +45,10 @@
border-color: var(--border-focus);
background-color: var(--surface-focus);
}
+
+ [data-slot="icon"] {
+ color: var(--icon-strong-base);
+ }
}
&[data-variant="ghost"] {
@@ -66,7 +70,10 @@
}
&[data-size="normal"] {
- padding: 0 6px 0 6px;
+ padding: 0 6px;
+ &[data-icon] {
+ padding: 0 6px 0 4px;
+ }
font-size: var(--font-size-small);
line-height: var(--line-height-large);
@@ -75,7 +82,12 @@
&[data-size="large"] {
height: 32px;
- padding: 0 8px 0 6px;
+ padding: 0 8px;
+
+ &[data-icon] {
+ padding: 0 8px 0 6px;
+ }
+
gap: 8px;
font-family: var(--font-family-sans);