You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
button-segmented-default-bg (should be transparent, do we need this at all?)
button-segmented-border
button-segmented-padding-block
button-segmented-padding-inline
button-segmented-font-size
Development
Implement this pattern as a radiogroup.
<fieldsetclass="segmented-button"><legend>Title ("Change view" or whatever makes sense, this should be hidden)</legend><label>
View 1
<inputtype="radio" />
</label>
...
</fieldset>
You can use the label to style the component and hide the input itself, it's also possible to put the label after the input and connect it through the for attribute. The for attribute is not necessary when the input is wrapped by the label.
Hide the legend element from view, but make it accessible to screen readers by using the visually-hidden mechanics
Description
Open issues:
Design:
Design
https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=18-16
Tokens proposal
Development
Implement this pattern as a radiogroup.
Other requirements
for
attribute. Thefor
attribute is not necessary when the input is wrapped by the label.visually-hidden
mechanicsImplementation references
Tasks
💻 Tasks
The text was updated successfully, but these errors were encountered: