AlphaSlider
AlphaSlider
is a component used to allow the user to select a color hue.
The AlphaSlider
follows the WAI-ARIA - Slider Pattern for accessibility.
Keyboard Navigation
Key | Description | State |
---|---|---|
ArrowRight | Increases the value based on the step value. | - |
ArrowLeft | Decreases the value based on the step value. | - |
ArrowUp | Increases the value based on the step value. | - |
ArrowDown | Decreases the value based on the step value. | - |
Home | Sets the value to min . | - |
End | Sets the value to max . | - |
PageUp | Increases the value based on the min and max values. | - |
PageDown | Decreases the value based on the min and max values. | - |
ARIA Roles and Attributes
Component | Role and Attributes | Usage |
---|---|---|
AlphaSliderThumb Internal | role="slider" | Indicates that the element is a slider. |
aria-label | Sets "Slider thumb" . | |
aria-valuemin | Sets the min value. Default is 0 . | |
aria-valuemax | Sets the max value. Default is 1 . | |
aria-valuenow | Sets the current value. | |
aria-valuetext | Sets the current value, such as "18%" . | |
aria-readonly | Set to "true" if isReadOnly is set. | |
aria-disabled | Set to "true" if isDisabled is set. | |
aria-invalid | Set to "true" if isInvalid is set. | |
aria-required | Set to "true" if isRequired is set. | |
input Internal | type="hidden" | Excludes the element from the accessibility tree. |
aria-readonly | Set to "true" if isReadOnly is set. | |
aria-disabled | Set to "true" if isDisabled is set. | |
aria-invalid | Set to "true" if isInvalid is set. | |
aria-required | Set to "true" if isRequired is set. |
Edit this page on GitHub