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
When the expanded state of a button changes, the label should not change, because this confuses screen reader users and makes determining the actual functionality hard.
Actual Behavior
The example code for the Expander with checkbox variant has separate text for the unopened and opened states, but also sets the programmatic state using aria-expanded.
Proposed solution
The issue can be worked around by using the same text for both unopened and opened states, but since the component already has a programmatic state, it should probably not have the option at all for more than one label.
Consider setting the label automatically based on the checkbox label.
The text was updated successfully, but these errors were encountered:
Expected Behavior
When the expanded state of a button changes, the label should not change, because this confuses screen reader users and makes determining the actual functionality hard.
Actual Behavior
The example code for the Expander with checkbox variant has separate text for the unopened and opened states, but also sets the programmatic state using aria-expanded.
Proposed solution
The issue can be worked around by using the same text for both unopened and opened states, but since the component already has a programmatic state, it should probably not have the option at all for more than one label.
Consider setting the label automatically based on the checkbox label.
The text was updated successfully, but these errors were encountered: