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 a github/github
codespace
- Once the page opens
:6006
, click Color scheme and use light_high_contrast
- Click on "CustomPropertiesSchemaPage"
- Click on the ellipsis button at the right to show the actions menu
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