IconWidget has a LabelElement trait, which takes an invisibleLabel parameter, which is documented as "Whether the label should be visually hidden (but still accessible to screen-readers)". The label will still be visually hidden when it is set to false, though. Either this is a bug or it should be clearly documented that this option is not available.
Description
Description
Event Timeline
Comment Actions
@Tgr Not reproducible in my tests.
new OOUI\ButtonWidget( [ 'framed' => false, 'icon' => 'edit', 'label' => 'Edit', 'invisibleLabel' => false, 'title' => 'Icon only' ] )
leads to the label being visible.