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

Switch widget #63

Open
dz4k opened this issue Aug 21, 2024 · 3 comments
Open

Switch widget #63

dz4k opened this issue Aug 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@dz4k
Copy link
Collaborator

dz4k commented Aug 21, 2024

Style <input type=checkbox role=switch> to be a toggle switch

@dz4k dz4k added the enhancement New feature or request label Aug 21, 2024
@geoffrey-eisenbarth
Copy link
Collaborator

geoffrey-eisenbarth commented Aug 21, 2024

Are we trying to do anything drastically different from the markup in the WAI example or is that a good starting place?

@dz4k
Copy link
Collaborator Author

dz4k commented Aug 22, 2024

We shouldn't need any more markup than <input type=checkbox role=switch> thanks to appearance: none; and pseudoelements

@geoffrey-eisenbarth
Copy link
Collaborator

I've put something together, but I recently saw Adrian Roselli's take and want to implement some of their considerations. Hoping to have a PR this week, but we'll see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants