Closed Paul-Grogan closed 3 years ago
Just noticed that the Radio Selected Dot is already reported in https://github.com/carbon-design-system/carbon/issues/2485
This is still broken, at least on Firefox. See https://www.carbondesignsystem.com/components/button/usage/.
I'm unable to reproduce this as well, here is the website running Firefox:
Storybook version running Firefox:
Storybook running Edge
TJ - Your screenshots are for PRIMARY buttons. This ticket is about GHOST buttons.
Having said that...
As for Edge, the original target of this ticket, I can't test the original site anymore because the "Variant Selector" (and also "Theme selector") dropdowns are currently broken (on Edge). The storybook site is working.
On Firefox, the original page is working, but on storybook, the "label + icon" case is working but the "icon only" case is not:
(Note that this is the PLAYGROUND page as that's the only way to get an icon-only ghost button.)
Icon only Ghost buttons do work after toggling on the experimental prefers-contrast
switch from about:config
... but since "label + icon" ghost button icons work without that flag, why not do the same thing for icon-only ghost buttons?
Note: This is all confusing since ghost buttons are getting borders in high contrast, which makes them seem like primary buttons.
@wkeese Not sure what's going on on your end. I'm able to navigate the original site (and use the variant selector) and choose the Icon-only ghost button:
(Firefox)
The only thing I can think of is to ensure you're running the latest version of edge, and you've enabled High Contrast mode at the system level
Oh sorry, I forgot that I was on Edge Legacy instead of Chromium-based Edge. My manager had a fantasy about supporting both of them. Unsurprisingly, Chromium Edge is working about the same as Chrome.
So to revise my earlier statements:
prefers-contrast
experimental flag from about:config
, which triggers the CSS setting of fill: ButtonText
. Confusingly, for primary buttons etc, the icon is visible without that flag, because you set fill: currentColor
.
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
With Windows10's High Contrast mode enabled, using the Edge (Chromium) browser, the Icon in the Icon only Ghost button is not visible. Similarly, the dot in a Radio button is not visible either. This can be observed at the sample: https://www.carbondesignsystem.com/components/button
Button and Radio Button
Expected to see the icon in the Icon Only button, and the dot in the selected radio button
Identified on the Edge (Chromium) browser, version 85.0.564.41 (Official build) (64-bit)
Going to assume the latest because I reproduced it on the Sample ages.
WFfH Application Framework, expecting to complete our first ACS certification by the end of September. Which this will impact.
Steps to reproduce the issue
Step one Enable Windows 10's High Contrast mode
Step two Launch (Edge Chromium) and navigate to the Live Demo section of the Button sample:, https://www.carbondesignsystem.com/components/button/usage/#live-demo
Step three From the type menu change Button to Icon Only. Set the Kind to Ghost.
This will demonstrate both the invisible icon and the radio button's dot.
Additional information