- Issue created by @larowlan
- First commit to issue fork.
- Status changed to Needs review
5 months ago 9:17am 17 June 2024 - π©πͺGermany rkoller NΓΌrnberg, Germany
I've successfully applied the patch. I was curious because I've worked (with the help of @rocketeerbkw) on adding the
aria-modal
attribute 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 β¨ With an open dialog modal make only elements within the modal available to screenreaders Active 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/content
thedialog-min.js
for 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. :/ - Status changed to RTBC
5 months ago 12:54am 22 June 2024 - πΊπΈUnited States smustgrave
@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.
- π«π·France nod_ Lille
Can you open a follow-up for the aria modal issue?
- π«π·France nod_ Lille
No need for follow-up, we override the
_createWrapper
method where this is set initially. Ported the relevant line in core and updated the MR - Status changed to Fixed
5 months ago 8:06pm 22 June 2024 - π«π·France nod_ Lille
Committed and pushed 1b5c7db4ee to 11.x and 7be520e6e5 to 11.0.x. Thanks!
- π©πͺGermany rkoller NΓΌrnberg, Germany
ah 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?
Automatically closed - issue fixed for 2 weeks with no activity.