fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Accessibility issue - buttons

Open salehaHussain opened this issue 9 years ago • 5 comments

Bug Report

  • Package version(s):5.8.0
  • Browser and OS versions: Edge

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

Are you willing to submit a PR to fix? No

Requested priority: Normal

Describe the issue:

In high contrast, there is no way to distinguish a foucssed button from an unfocussed one.

Unfocussed - image

Focussed- image

salehaHussain avatar Nov 17 '17 17:11 salehaHussain

@lynamemi, can you take a look at this?

betrue-final-final avatar Jan 26 '18 22:01 betrue-final-final

Was able to repro this. When you focus a button it looks like it shrinks slightly. Didn't investigate too closely what's triggering that yet, but it's not very noticeable.

@betrue-final-final what's the desired behavior here? Should it be getting a second border with an little gap in between?

lynamemi avatar Feb 02 '18 22:02 lynamemi

Normally these buttons go from no background, to showing a background in regular contrast on hover. The focus is a border. In HC, there's a border drawing around these that should not be there in rest state.

betrue-final-final avatar Feb 02 '18 22:02 betrue-final-final

This bug can be reproduced with at least the PrimaryButton, DefaultButton and the "X" close button in the Panel component.

satbai avatar Mar 01 '18 20:03 satbai

+1 High contrast black theme the background of the selected button (which should be similar to focus) should be in "Cyan" and button text should be in "Black" colour.

In white theme background colour should be in "Purple" and button text colour should be in "White".

.......(edited): Is that not the case? Is there a standard somewhere for web? We can argue that focusing a button is in a way selecting the button, if it's just focus, border would suffice, but should we honor select styles as well? Do we have a definitive guidance here?

yaananth avatar Mar 15 '18 22:03 yaananth