Accessibility issue - buttons
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 -

Focussed-

@lynamemi, can you take a look at this?
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?
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.
This bug can be reproduced with at least the PrimaryButton, DefaultButton and the "X" close button in the Panel component.
+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?