-
Notifications
You must be signed in to change notification settings - Fork 599
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
Tab component should use pointer cursor style #3646
Comments
Hi Can I submit a pull request for this? I think we need to change this file ..fast-master\packages\web-components\fast-components\src\tabs\tab\tab.styles.ts and add cursor: pointer; to ${display("inline-flex")} :host { |
Will this automatically fix fluentUI webcomponents or separate PR will be required? |
Pardon me @arkadiuszwojcik , are you asking me? |
@arkadiuszwojcik I’ve created an issue for the Fluent implementation as well. |
@arkadiuszwojcik PR for the Fluent issue: microsoft/fluentui#14421 |
The cursor value should be "default" (arrow) not the pointer
From: https://medium.com/simple-human/buttons-shouldnt-have-a-hand-cursor-b11e99ca374b#.b33l7fivt |
@equinusocio @chrisdholt Just to be clear, when I reported this issue I was basing on current FluantUI behavior (React one) which is using pointer style. So at least microsoft/fluentui#14421 is now consistent with FluentUI React. As for this issue I am not an expert on web standards so I'm not sure about it. |
Well if Fluent design use |
"For example, command buttons already have a strong affordance, so they don’t need a hand pointer. The hand pointer must mean “this target is a link” and nothing else." I think this rule don't apply here as Pivot (name from FluentUI) or Tab (in Fast) don't have strong affordance as Tabs had i.e. in Windows 98. |
@equinusocio thanks for the links to the guidance and the article. Accessibility clearly has a long history, going all the way back to the invention of the hyperlink. Things have come a long way since then, and as our team has gone to great lengths to make the most accessible product we can, we've found many cases ripe for debate and some flat out contradictions. @ashoka-tech, yes, I agree with you submitting the change, like the one Chris submitted in Fluent UI. As arkadiuszwojcik mentioned in the last comment, tabs (or pivots) don't have such a strong affordance as to their functionality. We've chosen to use the pointer cursor for more than links because we believe it increases accessibility, and there is currently no other standard cursor designed for this purpose. One of the reasons we added the cursor change is that the fill for a button is not always 3:1 from its container background. This is allowed because the text is 4.5:1 from the button background, as it's expected a button can be determined also by context and action label. Using a magnifier app or high zoom may be necessary for some people, but it also can make the association of controls harder to understand. Contrary to the perspective of the Medium article, much space in a typical app is inactive or not clickable. Commonly many labels on the page of an app are static and not primarily intended to be selected. Longer sentences or paragraphs in articles are more likely to need to be selected. Our intent was to make the cursor intentional and informational to increase accessibility. |
@bheston Thanks, will submit the change. |
Describe the bug; what happened?
Current Tab component implementation on cursor hover display text cursor
What are the steps to reproduce the issue?
What behavior did you expect?
I expect pointer style cursor
The text was updated successfully, but these errors were encountered: