Skip to content
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

Merged
merged 2 commits into from
Dec 9, 2023
Merged

add storybook with buttons #3792

merged 2 commits into from
Dec 9, 2023

Conversation

ivanko22
Copy link
Contributor

@ivanko22 ivanko22 commented Dec 7, 2023

What github.com/wevote/WebApp/issues does this fix?

Changes included this pull request?

@DaleMcGrew
Copy link
Member

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:
/WebApp/src/js/common/components/Buttons
/WebApp/src/js/common/components/Style/Colors

Copy link

@accesslint accesslint bot left a 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" />
Copy link

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" />
Copy link

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" />
Copy link

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" />
Copy link

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" />
Copy link

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" />
Copy link

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" />
Copy link

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.

@ivanko22
Copy link
Contributor Author

ivanko22 commented Dec 8, 2023

@DaleMcGrew just added it. Thank You!

@DaleMcGrew
Copy link
Member

👍

@DaleMcGrew DaleMcGrew merged commit f58e5ef into wevote:develop Dec 9, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants