Skip to content

"Compare With" Dropdown chip color issues #405

@mevionfamos

Description

@mevionfamos

Description

When selecting multiple operators in the "compare with" dropdown, the text inside the dark chips is unreadable.
For electricity prices we do not color the chips at all (e.g. https://www.strompreis.elcom.admin.ch/municipality/3661?municipality=3790%2C191%2C243%2C1301%2C1213%2C2553%2C6421) and instead show a small legend for the colors. this might be the easiest solution to avoid this problem. (we already have the legend)

Image

In addition to this, the colors do not always match the chart below, as discussed here
Example: https://www.strompreis.abn.elcom.admin.ch/sunshine/operator/335/costs-and-tariffs?tab=netTariffs&compareWith=10839%2C110%2C10773%2C111&viewBy=latest (seems to only affect #412)

Image

Reproduction Steps

  1. Navigate to https://www.strompreis.abn.elcom.admin.ch/sunshine/operator/585/costs-and-tariffs?tab=networkCosts&compareWith=10773%2C11%2C10839%2C107%2C109%2C126%2C11829%2C124%2C11772%2C123%2C11828%2C122%2C127%2C112%2C114%2C137%2C11841%2C129%2C113%2C134&viewBy=latest
  2. Observe some of the names are not readable (dark on dark)
  3. In addition to not being readable, the colors also do not always match the

Additional Context

Original feedback from Notion:

Test Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions