Skip to content

ActionList.Item using wrong colors and get invisible in high-contrast theme #3044

Description

@pablonete

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:
image
Also wrong on hover:
image

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:

  1. npm run storybook in a github/github codespace
  2. Once the page opens :6006, click Color scheme and use light_high_contrast
  3. Click on "CustomPropertiesSchemaPage"
  4. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions