Skip to content

Commit

Permalink
Button v3 Disabled Styles Update (#5402)
Browse files Browse the repository at this point in the history
* Initial Commit

* Add changeset

* Changed selector

* Remove redundant code

---------

Co-authored-by: Christian Moore <[email protected]>
  • Loading branch information
Zystix and Christian Moore authored Dec 18, 2024
1 parent bc03b0c commit 805d63e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/twenty-goats-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kaizen/components': patch
---

Updated button v3 disabled styles
37 changes: 28 additions & 9 deletions packages/components/src/__rc__/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
--button-bg-color: var(--color-gray-300);
--button-border-color: var(--color-black);
}

&.isDisabled {
--button-bg-color: var(--color-white);
--button-border-color: var(--color-gray-400);
--button-text-color: var(--color-gray-400);
}
}

.tertiary {
Expand All @@ -135,6 +141,12 @@
--button-bg-color: var(--color-gray-300);
--button-border-color: var(--color-gray-300);
}

&.isDisabled {
--button-bg-color: transparent;
--button-border-color: transparent;
--button-text-color: var(--color-gray-400);
}
}

.primaryReversed,
Expand Down Expand Up @@ -164,6 +176,12 @@
--button-bg-color: var(--color-white);
--button-border-color: var(--color-white);
}

&.isDisabled {
--button-bg-color: rgba(var(--color-white-rgb), 0.2);
--button-border-color: transparent;
--button-text-color: rgba(var(--color-purple-800-rgb), 0.7);
}
}

.secondaryReversed {
Expand All @@ -185,6 +203,12 @@
--button-bg-color: rgba(var(--color-white-rgb), 0.1);
--button-border-color: var(--color-white);
}

&.isDisabled {
--button-bg-color: transparent;
--button-border-color: rgba(var(--color-white), 0.2);
--button-text-color: rgba(var(--color-white-rgb), 0.2);
}
}

.tertiaryReversed {
Expand All @@ -206,16 +230,11 @@
--button-bg-color: rgba(var(--color-white-rgb), 0.1);
--button-border-color: transparent;
}
}

.isDisabled {
--button-bg-color: var(--color-gray-400);
--button-border-color: var(--color-gray-400);
--button-text-color: var(--color-white);

&[data-hovered] {
--button-bg-color: var(--color-gray-400);
--button-border-color: var(--color-gray-400);
&.isDisabled {
--button-bg-color: transparent;
--button-border-color: transparent;
--button-text-color: rgba(var(--color-white-rgb), 0.2);
}
}

Expand Down

0 comments on commit 805d63e

Please sign in to comment.