Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen control does not have a default tooltip when hovered #8009

Closed
dmytro-gokun opened this issue Mar 9, 2019 · 3 comments
Closed

Comments

@dmytro-gokun
Copy link
Contributor

Navigation controls do. For sure, it is possible to select the DOM element manually and assign the whatever tooltip we like. This, however, binds us to implementation details.

Another point here: if we want the tooltip to change based on the current _isFullscreen state, we have to catch corresponding events (e.g. repeat the browser-dependent code in our apps and maintain that as browsers change and progress). That does not look like a smart solution.

@andrewharvey
Copy link
Collaborator

This should be an easy change. Did you want to submit a PR?

This is how it sets the aria-label, but not title currently

button.setAttribute("aria-label", "Toggle fullscreen");

This is how it's done for navigation

@dmytro-gokun
Copy link
Contributor Author

@andrewharvey Yep, I would like to try.

Question: do you think it makes sense to have different aria-babel/title based on the current "fullscreen" state. Something along these lines "Enter fullscreen mode"/"Exit fullscreen mode"? What do you think?

@andrewharvey
Copy link
Collaborator

Question: do you think it makes sense to have different aria-babel/title based on the current "fullscreen" state. Something along these lines "Enter fullscreen mode"/"Exit fullscreen mode"? What do you think?

Yes, after all, the icon is different based on enter/exit, so aria-label and title should have the same distinction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants