Skip to content

[Bug]: theme neutral color token for popover bg when overlapping zoned theming #11347

Open

Description

Summary

This issue was brought up when migrating the Carbon tutorial to v11.
In the tutorial, we have the header as g100 and the content as white. The UI shell icon buttons all use tooltips (since all our icon only buttons do for a11y). We realized that when the tooltip was showing, the g100 theme tooltip bg color was a light color, which blended in too much with the white bg content.

This might not be the only time something like this happens when zoned themes have popover content that overlap with the different themes.
Screen Shot 2022-04-28 at 1 58 12 PM

Screen Shot 2022-04-28 at 1 57 43 PM

One of the options we considered was having a theme neutral color token for these situations. But then also need a way to be able to select that or configure that.

For the time being, we used $gray-20 as the tooltip bg color (per design guidance).

Justification

Better visibility and a11y. When the color blends in too much with one theme, it can be easy to miss the content.

Desired UX and success metrics

No response

Required functionality

Ability to be able to easily configure (via prop or something) a theme neutral bg color

Specific timeline issues / requests

No response

Available extra resources

No response

Code of Conduct

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

Metadata

Assignees

No one assigned

    Type

    Projects

    • Status

      ⏱ Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions