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

feat: Switch component #332

Merged
merged 28 commits into from
Mar 3, 2023
Merged

feat: Switch component #332

merged 28 commits into from
Mar 3, 2023

Conversation

artmsilva
Copy link
Contributor

@artmsilva artmsilva commented Feb 24, 2023

What I did

New Switch component!

@vercel
Copy link

vercel bot commented Feb 24, 2023

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

Name Status Preview Comments Updated
wpds-ui-kit ✅ Ready (Inspect) Visit Preview 4 resolved Mar 3, 2023 at 5:41PM (UTC)
wpds-ui-kit-storybook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 3, 2023 at 5:41PM (UTC)

Copy link
Contributor

@atomictangerine atomictangerine left a comment

Choose a reason for hiding this comment

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

Nice!


### Error

When the switch is a requirement it will show an error border color.
Copy link
Contributor

Choose a reason for hiding this comment

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

This sentence doesn't seem correct. There's no visual indication that a switch is required per next section. You may have meant when a required switch hasn't been touched? or something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the copy from Zeplin. Def down to refine with design.

...Kit,
...Assets,
// ...Assets, // this is causing the issue.. we have an icon named Switch and it's conflicting with the Switch component from WPDS UI Kit
Copy link
Contributor

Choose a reason for hiding this comment

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

forgotten comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want to keep this comment so future us will know why.

build.washingtonpost.com/pages/playroom.js Outdated Show resolved Hide resolved
ui/switch/src/SwitchRoot.tsx Outdated Show resolved Hide resolved
ui/switch/src/SwitchRoot.tsx Outdated Show resolved Hide resolved
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