-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActionList.Item using wrong colors and get invisible in high-contrast theme #3044
Comments
I've got a fix for this in Rails, but looking at the React code for ActionList I'm not sure how to achieve the same thing. We need to target the |
Here's the matching react PR for icon and description: #3045 @langermank There are 2 bugs in this issue, keeping this issue open because we still don't know what causes the strange rendering issue |
…3505) * Add fixtures for #3044 * test(vrt): update snapshots * oops my bad! * Fix for icon and description * Create cyan-cycles-provide.md * update jest snapshots * test(vrt): update snapshots * Update cyan-cycles-provide.md * update snapshots! * test(vrt): update snapshots --------- Co-authored-by: siddharthkp <siddharthkp@users.noreply.github.com>
Hi! This issue has been marked as stale because it has been open with no activity for 180 days. You can comment on the issue or remove the stale label to keep it open. If you do nothing, this issue will be closed in 7 days. |
This was fixed in #3505 and released in v35.27.0! |
Description
We're using a
<ActionList.Item variant="danger" ... />
and it renders wrong in high-contrast themes (both dark and light) but not on any other theme:Also wrong on hover:
Interestingly, text color gets fixed on resize (e.g. just opening DevTools) while icon color stays always wrong.
https://github.com/github/github/blob/8d9083549de626e8b3fa9667a2de09840f39642f/app/assets/modules/custom-properties/components/DefinitionsTable.tsx#L74
Steps to reproduce
I'll go with the Monolith Storybook where it's easier:
npm run storybook
in agithub/github
codespace:6006
, click Color scheme and uselight_high_contrast
Expected: label and icon readable
Actual: icon visible and label transparent, the opposite on mouse hover
Some repro videos on slack.
Version
v35.21.0
Browser
Chrome, Firefox
The text was updated successfully, but these errors were encountered: