-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add storybook with buttons #3792
Conversation
Thank you @ivanko22 I'm excited to play with this. It looks like you didn't check in (add to your Pull Request) all of the new directories and files you are referencing, including these: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args | ||
export const AllButtons = (args) => ( | ||
<ButtonContainer> | ||
<Button {...Primary.args} primary size="large" label="Primary Large Disabled Button" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
export const AllButtons = (args) => ( | ||
<ButtonContainer> | ||
<Button {...Primary.args} primary size="large" label="Primary Large Disabled Button" /> | ||
<Button {...Primary.args} primary={false} size="large" label="PrimaryLarge Disabled Button" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<ButtonContainer> | ||
<Button {...Primary.args} primary size="large" label="Primary Large Disabled Button" /> | ||
<Button {...Primary.args} primary={false} size="large" label="PrimaryLarge Disabled Button" /> | ||
<Button {...Primary.args} primary label="Primary Medium Button" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<Button {...Primary.args} primary size="large" label="Primary Large Disabled Button" /> | ||
<Button {...Primary.args} primary={false} size="large" label="PrimaryLarge Disabled Button" /> | ||
<Button {...Primary.args} primary label="Primary Medium Button" /> | ||
<Button {...PrimaryDisabled.args} primary={false} label="Primary Medium Disabled Button" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<Button {...Primary.args} primary={false} size="large" label="PrimaryLarge Disabled Button" /> | ||
<Button {...Primary.args} primary label="Primary Medium Button" /> | ||
<Button {...PrimaryDisabled.args} primary={false} label="Primary Medium Disabled Button" /> | ||
<Button {...Primary.args} primary size="small" label="Primary Small Button" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<Button {...Primary.args} primary label="Primary Medium Button" /> | ||
<Button {...PrimaryDisabled.args} primary={false} label="Primary Medium Disabled Button" /> | ||
<Button {...Primary.args} primary size="small" label="Primary Small Button" /> | ||
<Button {...PrimaryDisabled.args} primary={false} size="small" label="Primary Small Disabled" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
</> | ||
) : ( | ||
<> | ||
<Button size="small" onClick={onLogin} label="Log in" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
@DaleMcGrew just added it. Thank You! |
👍 |
What github.com/wevote/WebApp/issues does this fix?
Changes included this pull request?