fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

ChoiceGroup: Borders visible by default in high contrast and no way to distinguish keyboard focus

Open ghost opened this issue 9 years ago • 10 comments

In high contrast mode, choice group shows borders by default (as shown in below image). As a result, when navigating via keyboard, user is not informed if the focus is on that element or not.

image

ghost avatar Feb 27 '17 08:02 ghost

Good catch @prmittal. Interestingly, we have transparent borders here to fix the focus behavior but it is resulting in visible border in High Contrast mode. @mikewheaton, can you think of a fix here or should we check with Edge team for why transparent borders are visible in high contrast mode?

mdahamiwal avatar Feb 28 '17 11:02 mdahamiwal

Can you try adding -ms-high-contrast-adjust: none; to it? That tells Edge to use our high contrast styles rather than apply its own. This will be set globally once we update Fabric React to use Fabric Core 6.0 (it was included in this PR) but may need to be temporarily added for now.

mikewheaton avatar Feb 28 '17 17:02 mikewheaton

Tried that already with no luck, it messes up other high contrast overrides for internal elements.

mdahamiwal avatar Feb 28 '17 17:02 mdahamiwal

Made default border dotted, focus border solid.

aleksandrjPersonal avatar Mar 07 '17 22:03 aleksandrjPersonal

@aleksandrjPersonal I am not able to see any border at all now. Both with and without HC and keyboard focus. Can you please take a look once more.

ghost avatar Apr 19 '17 06:04 ghost

Hmm, can you send me a screen shot of what you are looking at? Make sure you have latest, and rebuild the project

-alek

From: Priyanka Mittal [mailto:[email protected]] Sent: Tuesday, April 18, 2017 11:12 PM To: OfficeDev/office-ui-fabric-react [email protected] Cc: Alek Gembinski (Filter LLC) [email protected]; Mention [email protected] Subject: Re: [OfficeDev/office-ui-fabric-react] ChoiceGroup: Borders visible by default in high contrast and no way to distinguish keyboard focus (#1115)

@aleksandrjPersonalhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FaleksandrjPersonal&data=02%7C01%7Cv-algemb%40microsoft.com%7C5181d31edae24d2a09e808d486eb0817%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636281791383737465&sdata=jDnJjBxXSu2qBiYkkOUiWglZsJlrRLKrq8%2F8yIAV%2BxE%3D&reserved=0 I am not able to see any border at all now. Both with and without HC and keyboard focus. Can you please take a look once more.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOfficeDev%2Foffice-ui-fabric-react%2Fissues%2F1115%23issuecomment-295113172&data=02%7C01%7Cv-algemb%40microsoft.com%7C5181d31edae24d2a09e808d486eb0817%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636281791383737465&sdata=Dm7t0DmkGAbX%2Bm3rvWp7Cn5gettiTs8s6o8ab5O7K2U%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAG8mBlWOKu_WOs824jrRmUL1Gv7hDjocks5rxaXAgaJpZM4MM1du&data=02%7C01%7Cv-algemb%40microsoft.com%7C5181d31edae24d2a09e808d486eb0817%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636281791383737465&sdata=N3ITtAfgYeJMaNmFJRS0G8ynAtEIphhNHm8KOB%2FitFY%3D&reserved=0.

aleksandrjPersonal avatar Apr 19 '17 19:04 aleksandrjPersonal

image

In above case, the focus is on the choice group but no border is visible.

The styling applied is

image Based on the highlighted field, it seems like it is the latest code

ghost avatar Apr 21 '17 06:04 ghost

A little more detail:

At the time of above styling, the component is image

@aleksandrjPersonal Let me know if the build I'm using is incorrect.

ghost avatar Apr 21 '17 07:04 ghost

Oh ok I can take a look at what was done for this

-alek

From: Priyanka Mittal [mailto:[email protected]] Sent: Thursday, April 20, 2017 11:56 PM To: OfficeDev/office-ui-fabric-react [email protected] Cc: Alek Gembinski (Filter LLC) [email protected]; Mention [email protected] Subject: Re: [OfficeDev/office-ui-fabric-react] ChoiceGroup: Borders visible by default in high contrast and no way to distinguish keyboard focus (#1115)

[image]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloud.githubusercontent.com%2Fassets%2F11937034%2F25265734%2F122d5fde-268c-11e7-8e2c-a22d0018dbb2.png&data=02%7C01%7Cv-algemb%40microsoft.com%7C62e29b32412a486fb73c08d488837ecc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636283545727658261&sdata=aVbNmkJDwjJJEOYphgDR1nSQHWEs8M8%2B3QfK3R6ZRd4%3D&reserved=0

In above case, the focus is on the choice group but no border is visible.

The styling applied is

[image]https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcloud.githubusercontent.com%2Fassets%2F11937034%2F25265963%2F227e2dea-268d-11e7-95cc-c87baa897fe1.png&data=02%7C01%7Cv-algemb%40microsoft.com%7C62e29b32412a486fb73c08d488837ecc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636283545727658261&sdata=uv47CPpu12L%2Bz1tjV9UpFJUyzgRvZmSWa%2Bp96pcYr1c%3D&reserved=0 Based on the highlighted field, it seems like it is the latest code

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOfficeDev%2Foffice-ui-fabric-react%2Fissues%2F1115%23issuecomment-296098207&data=02%7C01%7Cv-algemb%40microsoft.com%7C62e29b32412a486fb73c08d488837ecc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636283545727658261&sdata=EcgVSvM9EH2%2F7fHh6UHgq3OVtuU7Qsr%2FjxJXCBWz%2F5w%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAG8mBvcFxOr9w43ygM1iO9fT3dRPaa-Zks5ryFMKgaJpZM4MM1du&data=02%7C01%7Cv-algemb%40microsoft.com%7C62e29b32412a486fb73c08d488837ecc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636283545727658261&sdata=9MBokZASNd1DzhamEXlDKbXgKs1Yv20hvL4cwl6HoyE%3D&reserved=0.

aleksandrjPersonal avatar Apr 21 '17 17:04 aleksandrjPersonal

@aleksandrjPersonal Were you able to look into this issue? Since this one is marked as closed, i'll file a new one to keep track.

ghost avatar May 02 '17 07:05 ghost