Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jun 2024 at 23:04 UTC
Updated:
11 Jul 2024 at 18:50 UTC
Jump to comment: Most recent
Comments
Comment #4
quietone commentedComment #5
rkollerI've successfully applied the patch. I was curious because I've worked (with the help of @rocketeerbkw) on adding the
aria-modalattribute to dialog modals upstream to jquery ui (https://github.com/jquery/jquery-ui/pull/2257), as a short term fix for a serious issue for screen reader users in drupal #3395355: With an open dialog modal also elements in the background are added to the accessibility object model until https://www.drupal.org/project/dialog_native lands. I've assumed it should/would work out of the box with drupal but when i've tested with one of the dialog modals onadmin/structure/views/view/contentthedialog-min.jsfor the beta2 of jquery ui dialog is loaded butaria-modal="true"is not being added to the open dialog modal? Is the dialog initialized somehow else in drupal and not with the modal option set to true? because with the latter the aria-modal attribute should be added in beta2? and sorry for the basic question but creating the patch was already way out of my comfort zone. :/Comment #6
smustgrave commented@rkoller believe the dialog is initialized from misc/dialog/dialog.js but confirmed not seeing the aria-modal so probably something we could fix on our end in the issue you linked.
Reading https://jqueryui.com/changelog/1.14.0-beta.2/ that seems to be the main fix in this release with some smaller tests for jquery.
Applied locally and not noticing anything broken.
Comment #7
nod_Can you open a follow-up for the aria modal issue?
Comment #8
nod_No need for follow-up, we override the
_createWrappermethod where this is set initially. Ported the relevant line in core and updated the MRComment #12
nod_Committed and pushed 1b5c7db4ee to 11.x and 7be520e6e5 to 11.0.x. Thanks!
Comment #13
rkollerah thanks i wasn't aware of that detail in regards of the override of the method. but there is one detail i wonder about. would it make sense to also add a test that makes sure that this override adding the aria-modal attribute when the modal option is set to true is still properly working and not silently breaking in one of the future upgrades of core?
Comment #15
xjm