ios - How to make a DIV get Voiceover focus when it doesn't contain any focusable HTML? -
i have email client application, , i'm changing way show attachments email. had them @ top of email viewer in scrollable list; we're moving them they're displayed list @ bottom of email content. reasons related uiwebview control, necessary me implement these attachments html code programmatically appended html of original email (instead of doing them normal person would, each attachment uiview in ios).
i'm trying configure accessibility these html elements , running problems. each "attachment" consists of button-like background constructed 3 images: 1 left side of button, 1 right side of button, , middle portion stretchable (this allows button stretch in width without distorting edges). there's paper clip image , right-arrow image laid out on "button", , 2 sub-divs displaying file name , size.
the problem want make outer div encompasses of these sub-elements thing focusable voiceover, , want able control announced voiceover div (so can include file name, size, whether or not it's downloading etc.). however, seems things voiceover wants focus three-subimages make button background (and they're announced filenames) , 2 sub-divs show filename , file size. if hide of these sub-elements voiceover setting aria-hidden="true"
, nothing gets focused @ all. if set aria-hidden="false"
on outer div, div still not focused.
is there way make div focusable voiceover when doesn't contain inner html content voiceover focus on own? think hack solution stretch transparent png on div , make inner element aria-hidden="false", i'm not sure how voiceover read other file's name.
update: ok, seems can sort of achieve adding role="button"
on div while keeping of sub-elements aria-hidden="true"
. entire div focusable, still announces "button" (i'd "attachment" instead type, can live "button" if necessary). the main problem i'm encountering voiceover seems ignore aria-label
property, , instead reads out text contained in sub-divs. there way can voiceover read aria-label
property explicity set instead?
Comments
Post a Comment