-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor ButtonWIthIcon to replace ButtonSearch (#81)
* extend ButtonWIthIcon to replace ButtonSearch * swap ButtonSearch with ButtonWithIcon in header search * set default chevron icon size to small * refactor props variables * remove ButtonSearch * fix double border * remove button search * update based on comments * revert push to array then join * attach props to buttonSearch * add changelog * remove knobs from buttonSearch
- Loading branch information
1 parent
b2f7c44
commit 4a1afa0
Showing
13 changed files
with
74 additions
and
107 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,4 @@ | ||
___DESCRIPTION___ | ||
change | ||
minor | ||
- (React) Refactored ButtonWithIcon to replace ButtonSearch component #81 |
18 changes: 0 additions & 18 deletions
18
react/src/components/atoms/buttons/ButtonSearch/ButtonSearch.md
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
react/src/components/atoms/buttons/ButtonSearch/ButtonSearch.stories.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
7 changes: 7 additions & 0 deletions
7
react/src/components/atoms/buttons/ButtonWithIcon/ButtonWithIcon.md
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 |
---|---|---|
@@ -1,2 +1,9 @@ | ||
### Description | ||
A button that displays with an icon component. | ||
e.g. ButtonSearch, which is used for submitting a keyword search. | ||
e.g. Button with chevron, which is used for toggling between the expanded state and the collapsed state. | ||
|
||
### Changes for React | ||
* Button with Icon is a common button pattern that is currently not available in Patternlab. It's an extension on top of the [Button Search atom](https://mayflower.digital.mass.gov/?p=atoms-button-search). | ||
* `classes` array: To improve reusability of this component, classes can now be added to the button by adding them to the new `classes` array. | ||
* `ariaLabel` string: To improve accessibility of this component, an aria-label can be added if the displayed text is not helpful to assistive technologies. |
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
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