Dialog buttons do not inherit accessibility-related attributes
2 unresolved threads
Closes #3460846
Merge request reports
Activity
103 103 text: $originalButton.html() || $originalButton.attr('value'), 104 104 class: $originalButton.attr('class'), 105 105 'data-once': $originalButton.data('once'), 106 'aria-description': $originalButton.attr('aria-description'), 107 'aria-details': $originalButton.attr('aria-details'), maybe copy all data-attributes?
const originalDataAttributes = $originalButton[0].dataset; const buttonData = { text: $originalButton.html() || $originalButton.attr('value'), class: $originalButton.attr('class'), ...Object.fromEntries(Object.entries(originalDataAttributes)), ),
Edited by Ivan Berdinsky
195 198 $has_focus_text = $this->getSession()->evaluateScript('document.activeElement.textContent'); 196 199 $this->assertEquals('Do it', $has_focus_text); 197 200 201 $expected_attrs = [ 202 'aria-description' => 'Example description', 203 'aria-details' => 'ajax-form-description', 204 'aria-label' => 'Example label', 205 'title' => 'Example hover text', 206 ]; 207 208 $hello_world = $this->assertSession()->elementExists('css', '.ui-dialog-buttonpane')->findButton('Hello world'); changed this line in version 3 of the diff
Please register or sign in to reply