Skip to content

Commit

Permalink
feat(css): Add button active and disabled classes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmarine committed Jun 13, 2024
1 parent 6ebde68 commit ebb69c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/blue-lions-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"varvara-css": minor
---

Add button active and disabled classes
8 changes: 7 additions & 1 deletion packages/css/src/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@
background-color: color-mix(in srgb, var(--va-text-normal) 8%, transparent);
}

&:active {
&:active,
&--active {
color: var(--va-surface-primary);
background-color: var(--va-text-normal);
}

&--disabled {
@apply pointer-events-none;
color: var(--va-text-weak);
}

&--action {
@apply uppercase;
}
Expand Down
1 change: 1 addition & 0 deletions packages/css/src/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--va-background-primary: var(--va-color-primary);

--va-text-normal: #ffffff;
--va-text-weak: color-mix(in srgb, var(--va-text-normal) 20%, transparent);

--va-surface-primary: color-mix(
in srgb,
Expand Down

0 comments on commit ebb69c0

Please sign in to comment.