fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

[Accessibility] PrimaryButton has the same style as DefaultButton in High Contrast Black/White mode

Open stephenzsy opened this issue 9 years ago • 6 comments

Bug Report

  • Package version(s): Fabric Core >=5.1.0-0 <6.0.0-0 and Fabric React >=2.23.0 <3.0.0
  • Browser and OS versions: Microsoft Edge 40.15063.0.0 on Windows 10 1703 15063.250

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? No

Requested priority: High

Products/sites affected: (if applicable)

Describe the issue:

In High Contrast Mode in Microsoft Edge, PrimaryButton has the same color style as DefaultButton

Actual behavior:

In High Contrast Mode in Microsoft Edge, PrimaryButton has the same color style as DefaultButton

Expected behavior:

In High Contrast Mode in Microsoft Edge, PrimaryButton should have different color styles as DefaultButton

If applicable, please provide a codepen repro:

stephenzsy avatar May 09 '17 01:05 stephenzsy

Valid concern. @betrue-final-final, is there a way to align it with normal mode?

Normal image

High contrast image

mdahamiwal avatar May 09 '17 05:05 mdahamiwal

Yes, I would use "selected background" color (cyan) for the border. image

betrue-final-final avatar May 09 '17 15:05 betrue-final-final

@betrue-final-final isn't cyan border or fill supposed to be focus or hover indicator? I am not very convinced with current focus and hover treatment.

primary btn-focus

mdahamiwal avatar May 10 '17 16:05 mdahamiwal

I like the hover and focus treatment provided by windows using background color:

gif-windows-button

what you think ?

mdahamiwal avatar May 10 '17 17:05 mdahamiwal

Yeah, this problem is pretty deep. No hover, focus is unevenly presented...for one, we can make hover cyan, which is what is done all over Windows, and even in OneDrive. Let me get back to you with a proposal after I find out from the Windows designers how they handle accent buttons. I'm having a hard time finding an accent button in Windows.

image

betrue-final-final avatar May 10 '17 18:05 betrue-final-final

@betrue-final-final, what if we make primary button border match the system hyperlinks color and hover borders match the selected text system color?

kristoferbrown avatar Aug 15 '17 20:08 kristoferbrown