Created
March 3, 2023 14:59
-
-
Save brendancarney/05f91dc3bdd26373acf2699625ac6db4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
funtion WidthField({ label, describing }) { | |
// Not sure about `describing`, but wanted some way to associate what the whole field is related to | |
return ( | |
<Fieldset> | |
<Legend><VisuallyHidden>{describing}</VisuallyHidden> {label}</Legend> | |
<RadioButtonGroup> | |
<VisuallyHidden><Label> type (?)</Label></VisuallyHidden> | |
</RadioButtonGroup> | |
<Flex> | |
<ScreenReaderHidden> {/* screen readers won't need the slider b/c they have the input *} | |
<Slider id="slider-id" className="flex-grow"/> | |
</ScreenReaderHidden> | |
<VisuallyHidden><Label>pixel width</Label></VisuallyHidden> | |
<Input append="px"/> | |
</Flex> | |
</Fieldset> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment