Hi Martin, I took a look at the post you mentioned, but in that patch the div
node is still being appended to the document.body node, resulting in the
behavior i'm seeing. However I have to admit that appending the new div node
to the placeholder is just a nice to have. A more appropriate solution for
making the modal window more accessible would be the outer div element to
have a role='dialog' attribute along with an aria-labelledBy='<title text
element id>' attribute, like showed below:

line 1170 of modal.js:

"<div class=\&quot;wicket-modal\&quot;
id=\&quot;&quot;+idWindow+&quot;\&quot; role=\&quot;dialog\&quot;
aria-labelledBy=\&quot;&quot;+idCaptionText+&quot;&quot;\&quot;
style=\&quot;top: 10px; left: 10px; width: 100px;\&quot;>

This will appropriately alert the screen readers when the modal is shown.
Following with accessibility findings, i also posted
http://apache-wicket.1842946.n4.nabble.com/adding-associated-text-to-the-close-anchor-on-modal-windows-tp4504732p4504732.html

Regards
Lucas

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ModalWindow-accessibility-DIV-placeholder-not-used-tp4501891p4505633.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to