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

Quickfix: Add disabled button styles to the button in the design system #329

Merged
merged 3 commits into from
Aug 31, 2022

Conversation

sirJiggles
Copy link
Contributor

What❓

Here I added styles for the button in the design system so it can be disabled and a story to go with it.

Screenshot 2022-08-31 at 14 08 51

Why 💁‍♀️

We need it in more and more places and having components to override this can be troublesome

@sirJiggles sirJiggles requested a review from a team August 31, 2022 12:10
@sirJiggles sirJiggles requested a review from a team as a code owner August 31, 2022 12:10
@vercel
Copy link

vercel bot commented Aug 31, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
design-system ✅ Ready (Inspect) Visit Preview Aug 31, 2022 at 1:06PM (UTC)

@changeset-bot
Copy link

changeset-bot bot commented Aug 31, 2022

🦋 Changeset detected

Latest commit: 27cdbbf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@qualifyze/design-system Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gsuess
Copy link
Contributor

gsuess commented Aug 31, 2022

This change is Reviewable

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 31, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 27cdbbf:

Sandbox Source
qualifyze-design-system-basic Configuration

Copy link
Member

@jorgechiapello jorgechiapello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @jorgechiapello and @sirJiggles)


src/components/Button/index.jsx line 41 at r2 (raw file):

          bg: 'primary.700',
        },
        // '&:disabled': {

This is commented, maybe a leftover?


src/components/Button/index.stories.jsx line 44 at r2 (raw file):

    <Inline>
      <Button disabled variant={variant} onClick={action('Button clicked')}>
        Cant touch this

https://youtu.be/otCpCn0l4Wo?t=19

@jorgechiapello jorgechiapello self-requested a review August 31, 2022 12:56
Copy link
Contributor Author

@sirJiggles sirJiggles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @jorgechiapello)


src/components/Button/index.jsx line 41 at r2 (raw file):

Previously, jorgechiapello (Jorge Alberto Chiapello) wrote…

This is commented, maybe a leftover?

Done.


src/components/Button/index.stories.jsx line 44 at r2 (raw file):

Previously, jorgechiapello (Jorge Alberto Chiapello) wrote…

https://youtu.be/otCpCn0l4Wo?t=19

Not gonna lie I half expected a rick roll 😆

Copy link
Member

@jorgechiapello jorgechiapello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @sirJiggles)

@sirJiggles sirJiggles merged commit 1b6a950 into main Aug 31, 2022
@sirJiggles sirJiggles deleted the disabled-button-styles branch August 31, 2022 13:07
@github-actions github-actions bot mentioned this pull request Aug 31, 2022
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.

None yet

3 participants