-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ui-kit): add clickable functionality to
Card
(#2706)
* chore(ui-kit): first pass at card container changes * chore(ui-kit): install react-router-dom as card component dependency for dependent link component * chore(ui-kit): add button role for aria compatibility * chore(ui-kit): add aria-disabled * chore(ui-kit): fix incorrect test names * chore(ui-kit): refine a11y strategy * chore(ui-kit): correct incorrectly defined prop name * chore(ui-kit): handle LocationDescriptor type * chore(ui-kit): generate changeset * chore(ui-kit): prefer warning over throwing error * chore(ui-kit): remove unnecessary link role * chore(ui-kit): remove brackets for prop name * chore(ui-kit): fix storybook prop * chore(ui-kit): fix disabled logic * chore(ui-kit): assert parent container type * chore(ui-kit): cast proptype * chore(ui-kit): enable disabled state only if onClick or to provided * chore(ui-kit): fix test note * chore(ui-kit): enable disable in visualroute spec * chore(ui-kit): improve variable naming * chore(ui-kit): support button accessibility * chore(ui-kit): remove prop from knobs
- Loading branch information
Showing
8 changed files
with
313 additions
and
52 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,5 @@ | ||
--- | ||
'@commercetools-uikit/card': patch | ||
--- | ||
|
||
We've extended the Card component with onClick and internal/external linking functionality, along with disabled functionality and styling. |
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
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
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
Oops, something went wrong.