Hidden text expander
Hidden text expander indicates and toggles hidden text.
On this page
v0.10.0AlphaNot reviewed for accessibility
Description
Use HiddenTextExpander
to indicate and toggle hidden text.
Accessibility
HiddenTextExpander
requires an aria-label
, which will provide assistive technologies with an accessible label.
The aria-label
should describe the action to be invoked by the HiddenTextExpander
. For instance,
if your HiddenTextExpander
expands a list of 5 comments, the aria-label
should be
"Expand 5 more comments"
instead of "More"
.
Arguments
Name | Default | Description |
---|---|---|
inline |
| Boolean Whether or not the expander is inline. |
button_arguments |
| Hash System arguments for the button element. |
system_arguments | N/A | Hash |