![]() ![]() This should be an acceptable use of aria-hidden because often the rest of the page is unintentionally “visible” (available) to screen reader users, and in a modal situation, there should only be the modal. There is only XUL- er, there is only the modal.” Some people have taken to using aria-hidden=“true” on the rest of the page part (this only works if the modal is NOT a child of the page), meaning “dearest all users: this page element does not exist. Nowadays a trendy half-opaque dark area is layered over the page, to make the modal stand out, but imagine the modal’s HTML is also outside the whole page element. ![]() But usually sighted people can still actually see the rest of the page. Like when a Javascript alert appears: your only options are within that alert, or closing the alert. So one example of possible good use of aria-hidden is when you’ve made a modal popup and the “rest of the page” part should basically not exist for the user, any user, until the user has either done something within the popup, or closed it. In general the concensus seems to be that it should reflect a true state of something on the web page: that it is indeed intended to be hidden, from all users. The various screen reader makers as well as the browsers have also had long discussions about what to do when there is aria-hidden. There’s been a large debate about it, which included debates on whether browsers should be able to detect screen readers or other AT and then whether web developers should have access to that information, and then whether that’s a privacy invasion etc. I think we web developers want to be really careful with aria-hidden. Semantically, you probably agree this is not good use (a choice as a name of the choices who then actually isn’t meant to really be a choice). value=“0” should be a valid option and if that’s an error, let the back end deal with it. It seems to me that if the client insists on having one of the options pretend to be a label, then they’d better be totally okay with a user not making a selection at all. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |