Repository navigation
Conversation
|
Thanks for also fixing those ugly warnings 💯 |
| width: 100%; | ||
| height: 100%; | ||
| position: absolute; | ||
| border: none; |
There was a problem hiding this comment.
<button> has padding by default that we probably want to remove: padding: 0;
|
I think we might need to tweak how we adjust I'm not totally sure what the ideal approach to hiding the poster should be, but one option is to set @svinkle do you have any suggestions here? |
| <div class="slot poster"> | ||
| <slot name="poster"> | ||
| <div id="default-poster" aria-hidden="true" aria-label="Activate to view in 3D!"></div> | ||
| <button type="button" id="default-poster" aria-hidden="true" aria-label="Activate to view in 3D!"></button> |
There was a problem hiding this comment.
aria-hidden="true" hides this element from assistive technology (yet the tab-stop remains.) Please remove the aria-hidden attribute.
There was a problem hiding this comment.
@svinkle the poster starts out in a hidden state unless the user configures it to be visible. If we don't do this, then it is always possible for the user to tab through the poster even when it is not configured or otherwise visible.
There was a problem hiding this comment.
@cdata Got it. Noticed this when reading through $showPoster().
|
There's a few ways to approach this:
Each will remove the element from all users and assistive technology. The other question to this process is once the poster is activate and removed, how is keyboard focus managed? Ideally since the poster is used to "reveal" the 3D model, focus would shift to the |
|
Thanks for the feedback @svinkle ! To your question about poster focus, we do indeed already forward focus to the I have updated this PR to swap the previous tabindex logic. |
* poster -> button * updated to current three.js methods * addressing feedback * Swap tabindex logic
Fixes #905
@svinkle I think I fixed this, but confirmation from someone who knows accessibility better than myself would be great.
I also took the opportunity to update some three.js methods that were deprecated and were spewing ugly warnings on the console.