-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecated isReversed prop to Button (#5325)
* add deprecated isReversed props to Button * update type description and how reversed variant is set * Update packages/components/src/__actions__/Button/v3/Button.tsx Co-authored-by: Cassandra <cassandra.tam@cultureamp.com> --------- Co-authored-by: Cassandra <cassandra.tam@cultureamp.com>
- Loading branch information
1 parent
4a78769
commit 92c228f
Showing
3 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@kaizen/components": patch | ||
--- | ||
|
||
Add a deprecated isReversed prop to Button v3 to allow for safe migration path to the ReversedColors Provider. | ||
|
||
* `isReversed` to allow users to toggle the reversed variants with a `boolean`. | ||
* Adds `@deprecated` flag to prompt user to use the `ReverseColors` Provider instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters