Repository navigation
chore(ui-components): minor adjustments in Button component - #45480
Merged
ahmaxed merged 1 commit intoMar 23, 2022
Merged
Conversation
|
👀 Review this PR in a CodeSee Review Map |
huyenltnguyen
commented
Mar 20, 2022
Comment on lines
+10
to
+12
| controls: { | ||
| include: ['children', 'variant', 'size'] | ||
| } |
Member
Author
There was a problem hiding this comment.
We extend the Button's interface from HTML attributes in order to accept attributes such as aria-disabled, aria-label, etc. This turns the Storybook controls into a clutter.
What I'm doing here is filtering the controls and only show what we are interested in.
Comment on lines
+14
to
+21
| argTypes: { | ||
| variant: { | ||
| options: ['primary', 'danger'] | ||
| }, | ||
| size: { | ||
| options: ['small', 'medium', 'large'] | ||
| } | ||
| } |
Member
Author
There was a problem hiding this comment.
I'm explicitly listing the options in order to remove the undefined option (not sure where that comes from).
4 of 10 tasks
huyenltnguyen
marked this pull request as ready for review
March 20, 2022 05:22
Member
|
Other than the above-mentioned nitpick, this is LGMT. |
ahmaxed
approved these changes
Mar 22, 2022
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Checklist:
Update index.md)mainbranch of freeCodeCamp.Ref #45357
This PR:
refforwarding to Button component (as noted in feat(ui-components): implement basic Button component #45421 (comment))Note: It is easier to review the PR if you enable the "Hide whitespace changes" option.
Screenshot