reaviz / reablocks

🧩 Component Library for React based on Tailwind. Maintained by @goodcodeus.
https://reablocks.dev
Apache License 2.0
131 stars 10 forks source link

add ability to style states of disabled toggle #196

Closed steppy452 closed 6 months ago

steppy452 commented 6 months ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A Disabled state for Toggle only had one class

What is the new behavior?

Disabled state for Toggle can now be separated into base (toggle is off) and checked states

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Also updated the Toggle disabled story to include both states of disabled Toggles

netlify[bot] commented 6 months ago

Deploy Preview for reablocks-storybook ready!

Name Link
Latest commit 45c2607772e4bb41fd57cb9b2ff11deb37b5471e
Latest deploy log https://app.netlify.com/sites/reablocks-storybook/deploys/66478f71158f6000088d84ba
Deploy Preview https://deploy-preview-196--reablocks-storybook.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

steppy452 commented 6 months ago

doesn't seem like this is needed anymore