Navigation Menu

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 optional variant #8486

Merged
merged 2 commits into from Jun 1, 2022
Merged

Add optional variant #8486

merged 2 commits into from Jun 1, 2022

Conversation

adamwathan
Copy link
Member

This PR adds a new variant for the optional pseudo-class, which is active when an element is not marked as required.

<input class="peer">
<span class="hidden peer-optional:inline>Optional</span>

This isn't really commonly needed but since we include both disabled and enabled variants, it feels consistent to support both required and optional.

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

1 participant