Skip to content

Commit 2daa365

Browse files
committed
fix(ui): add button-primary-base variable and use primary variant for Comment button
1 parent ae84e99 commit 2daa365

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/app/src/pages/session.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2087,7 +2087,7 @@ export default function Page() {
20872087
</Button>
20882088
<Button
20892089
size="small"
2090-
variant="secondary"
2090+
variant="primary"
20912091
disabled={draft().trim().length === 0}
20922092
onClick={() => {
20932093
const value = draft().trim()

packages/ui/src/components/button.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
white-space: nowrap;
1313

1414
&[data-variant="primary"] {
15-
background-color: var(--icon-strong-base);
15+
background-color: var(--button-primary-base);
1616
border-color: var(--border-weak-base);
1717
color: var(--icon-invert-base);
1818

packages/ui/src/styles/theme.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
--text-on-brand-weak: var(--smoke-light-alpha-9);
183183
--text-on-brand-weaker: var(--smoke-light-alpha-8);
184184
--text-on-brand-strong: var(--smoke-light-alpha-12);
185+
--button-primary-base: var(--smoke-light-12);
185186
--button-secondary-base: #fdfcfc;
186187
--button-secondary-hover: #faf9f9;
187188
--border-base: var(--smoke-light-alpha-7);
@@ -438,6 +439,7 @@
438439
--text-on-brand-weak: var(--smoke-dark-alpha-9);
439440
--text-on-brand-weaker: var(--smoke-dark-alpha-8);
440441
--text-on-brand-strong: var(--smoke-dark-alpha-12);
442+
--button-primary-base: var(--smoke-dark-12);
441443
--button-secondary-base: #231f1f;
442444
--button-secondary-hover: #2a2727;
443445
--border-base: var(--smoke-dark-alpha-7);

packages/ui/src/theme/themes/oc-1.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"text-on-brand-weak": "var(--smoke-light-alpha-9)",
116116
"text-on-brand-weaker": "var(--smoke-light-alpha-8)",
117117
"text-on-brand-strong": "var(--smoke-light-alpha-12)",
118+
"button-primary-base": "var(--smoke-light-12)",
118119
"button-secondary-base": "#fdfcfc",
119120
"button-secondary-hover": "#faf9f9",
120121
"border-base": "var(--smoke-light-alpha-7)",
@@ -380,6 +381,7 @@
380381
"text-on-brand-weak": "var(--smoke-dark-alpha-9)",
381382
"text-on-brand-weaker": "var(--smoke-dark-alpha-8)",
382383
"text-on-brand-strong": "var(--smoke-dark-alpha-12)",
384+
"button-primary-base": "var(--smoke-dark-12)",
383385
"button-secondary-base": "#231f1f",
384386
"button-secondary-hover": "#2a2727",
385387
"border-base": "var(--smoke-dark-alpha-7)",

0 commit comments

Comments
 (0)