a11y: <label> text missing for buttons
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3473523. --> Reported by: [tgoeg](https://www.drupal.org/user/3531072) Related to !8 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The inserted <code>&lt;label&gt;</code> markup does not contain any string, which is bad for accessibility.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Create button block, look at source code.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add the button description text as label text as well.<br> Adding another field in the config settings to allow the definition of a CSS class to be set for the label also seems necessary. Bootstrap themes would most likely set "sr-only" there, so the labels get hidden for non-screenreader users.</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>Added configuration option for CSS class to be used.</p>
issue