-
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
Title attribute value in closed-caption menu is broken #3699
Comments
Can you please elaborate on what you mean by invalid text? |
@gkatsev I would expect a title for say "english" track to say at least "english" instead of " " which looks like a small square blocking the content. As for "caption settings" item, title is ", opens captions settings dialog" do you find it correct? Where is comma coming from? To be honest I don't think title is necessary at all - who would ever wait long enough to see it show up? |
Yeah, we should potentially just remove it altogether. I think the comma is there for screenreaders, but not positive. |
This is the same issue that @chemoish mentioned in his comment on #3447. When For controls which have visible text (e.g. So either the setting of the title text needs to be changed, or controlText needs to be more clearly defined and potentially the components need a separate feature for screen reader specific text. |
This just shows another case, of where the current 'controlText' structure breaks down in my opinion. Even if you look at the html, it doesn't make sense:
I mean, what is marked as control-text is not the actual control's text.. And then that get's reused for a tooltip, even though this thing doesn't need a tooltip. It should probably be something like:
|
@hartman sure, but there are two main types of controls; ones which have an icon, in which case the controlText is essentially the |
@OwenEdwards but that's just a matter of defining the right css. who says that vis-control-text always needs to be invisible, just because it is now ? |
@hartman then would the controlText always be used as the title (visible on hover), or would the CSS add the title attribute if the controlText isn't visible? |
This is still an issue for 5.13 in IE11 |
Looking over this again, it seems like @hartman is starting from the assumption that controlText is the title of the control, whereas I was starting from the basis that it is text associated with the control that is not displayed visually. Look again at the example:
The Fundamentally we need these separate pieces of information for every control:
The title may match the text, but it may be absent instead (I think it needs to be absent, rather than having title="", but I could be wrong about that). I foresee that there will be cases where people will want the title to be present but not match the hidden text. And this is where it gets tricky, because of the accessible name computation. I was trying to add a fourth piece of information, which was "state or description," for screen reader users. This has clearly caused problems when the |
This sounds like something we should figure out and change for 6.0. Might be too tricky to fix for 5.x. I'll add this to the 6.0 project. |
@OwenEdwards sorry apparently I missed your previous message. Its been a long while since I have put much thought into this (could totally be off the mark with context—everything is off cuff), but I think the organization structure of components's
Instead,
I don't remember all of the reasons to and how I also don't know if you need to add What audience is Hopefully, a combination of all of these cases do not need to be handled…But instead define specific use cases where we can provide a less confusing interface. |
Thinking about the above like this, it sounds like we just want to manage the title attribute of menu items manually in the menu item? Rather than forcing the title attribute to be the control text for those, we'd want to use the actual text of the menu item. |
Sounds like we are on a similar page.
My suggestion above might be a bit too bold, but I am down to help simplify this whenever it gets slotted in. |
I agree with @gkatsev and @chemoish. @hartman's suggestion that the hidden text was something that might be made visible by a CSS/skin change would make things much more complicated because then you'd want to remove the So yes, in the short-term, I think just not adding a Then these two are separate issues:
I'll open them as distinct issues. |
Stopping using |
Can the icon font just be hidden from screen readers with |
@dgirgenti the question of hiding the icon font from screen readers has been moved to a separate issue, #3982 |
Prevents a title attribute from being applied to MenuItems. MenuItem indicates to ClickableComponent that the control is not just an icon, so it shouldn't have a title attribute. Fixes #3699
Description
When CC menu items are hovered by mouse, they display empty or invalid text.
Steps to reproduce
Hover mouse over CC menu item to see title text appear.
In Chrome
Results
Expected
Title text to match values in the items.
Actual
Empty or invalid text appears.
Error output
No.
This issue can be observed on Video.js homepage in "Funny or Die" demo.
versions
videojs
5.11.8?
browsers
All
OSes
All
The text was updated successfully, but these errors were encountered: