Button
: Standardise text labels for icon buttons
#48272
Labels
[Feature] UI Components
Impacts or related to the UI component system
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Components
/packages/components
[Type] Enhancement
A suggestion for improvement.
For buttons which are displayed as icons only, it's important that they have a text based alternative which can be toggled on/off via editor preferences under
Appearance -> Show button text labels
.Currently it appears the CSS required to do this needs to be reimplemented for each location. It would be helpful if the component-side of this was standardised in the base component.
#47930 is an example of ensure a given UI supports text only labels.
@tellthemachines In a followup it feels like we should make this standardised CSS somehow.
@ciampo This CSS allows us to use text alternatives for icon buttons. Is it possible to bake this into the component in
@wordpress/components
?Originally posted by @getdave in #47930 (comment)
The text was updated successfully, but these errors were encountered: