Skip to content

[EuiPopover] Background in dark mode isn't different from the main background #5788

Closed

Description

@formgeist

Summary

In the many components that use EuiPopover for showing additional content, in dark mode the popover background blends completely with the background color and this makes the popover harder to distinguish.

Examples

image

Activity

  1. added
    design decision
    on Apr 13, 2022
  2. github-actions commented on Oct 10, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  3. added
    stale-issue
    on Oct 10, 2022
  4. github-actions commented on Oct 17, 2022

    @github-actions

    ❌ We're automatically closing this issue due to lack of activity. Please comment if you feel this was done in error.

  5. added
    stale-issue-closed
    on Oct 17, 2022
  6. cee-chen commented on Oct 24, 2022

    @cee-chen
    Contributor

    This still seems valid. @miukimiu, do you mind responding?

  7. added and removed
    stale-issue
    stale-issue-closed
    on Oct 24, 2022
  8. elizabetdev commented on Oct 25, 2022

    @elizabetdev
    Contributor

    The EuiPopover uses a EuiPanel. By default, de EuiPanel uses the useEuiBackgroundColor('plain'). Most of the backgrounds also use useEuiBackgroundColor('plain').

    The popover useEuiBackgroundColor('plain') on top of a background plain works well in the light mode because we can see properly the popover shadow.

    In dark mode, I have to agree it's hard to see the shadow. The contrast between the popover and the background it is not good.

    I think we need to introduce better design practices to solve this issue.

    For example, in Material Design Dark Mode higher elevation gets a lighter surface. I think this concept can solve our portal component's lack of contrast issues.

    I created a CodeSandbox exploring this concept (please ignore the arrows not getting the right color 😅 ): https://codesandbox.io/s/keen-sun-sdbh6t?file=/demo.js.

    Examples 3 and 4 use a lighter background.

    • The shadow gets more visible
    • The contrast with the background increases

    Screenshot 2022-10-25 at 12 46 48

    @formgeist, let me know your thoughts. Do you agree with this approach?

  9. github-actions commented on Apr 23, 2023

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  10. added
    stale-issue
    on Apr 23, 2023
  11. github-actions commented on Oct 22, 2023

    @github-actions

    ❌ Per our previous message, this issue is auto-closing after having been open and inactive for a year. If you strongly feel this is still a high-priority issue, or are interested in contributing, please leave a comment or open a new issue linking to this one for context.

  12. added
    stale-issue-closed
    on Oct 22, 2023
  13. cee-chen commented on Oct 23, 2023

    @cee-chen
    Contributor

    Re-opening as still valid. IMO, this would be a quick and easy fix for someone to grab (just changing the color of popovers, either via CSS or prop)

  14. added
    low hanging fruit
    and removed
    stale-issue
    stale-issue-closed
    on Oct 23, 2023
  15. self-assigned this
    on Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design decisiongood first issuelow hanging fruit

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions