-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Add a player option noUITitleAttributes
to prevent title attributes in the UI (fixes #6767).
#7134
Add a player option noUITitleAttributes
to prevent title attributes in the UI (fixes #6767).
#7134
Conversation
… in the UI (fixes videojs#6767).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me.
I need to add documentation in docs/guides/options.md before this is ready to merge. |
@@ -28,8 +28,11 @@ | |||
* [language](#language) | |||
* [languages](#languages) | |||
* [liveui](#liveui) | |||
* [liveTracker.trackingThreshold](#livetrackertrackingthreshold) | |||
* [liveTracker.liveTolerance](#livetrackerlivetolerance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know where these two lines came from?! I can remove them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you've run npm run docs:fix
, it probably added these two items that were added to the doc but we missed updating the TOC with them. #7097
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gkatsev so it would be okay to merge this change and let those two lines get added in options.md
? Or would you prefer to have them in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They can go in here.
…ibutes in the UI (videojs#7134) Fixes videojs#6767
Description
Some designers and developers feel that the presence of (redundant)
title
attribute values on UI controls makes the accessibility of those controls worse. The title attributes can also conflict with additions to make truly accessible tooltips on the controls.This PR allows developers to easily disable the addition of
title
attributes on all UI controls with a single player configuration option.Specific Changes proposed
Add a player option
noUITitleAttributes
which, if set totrue
, prevents video.js from adding anytitle
attributes to UI controls.Requirements Checklist