Skip to content

Background colors in compare view should have their meaning explained in title text #2914

Description

@mootari

Describe the bug

The compare view assigns a background color to certain values based on their properties. E.g. a package's publish date might receive a yellow background if its last version is older than a certain threshold.

Without context the meaning of these colors is ambiguous. I'd recommend adding a title text that explains why the color was assigned.

Example: https://npmx.dev/compare?packages=cors,corser,http-proxy-middleware

Additional context

No response

Logs

Activity

  1. added
    pending triage
    on Jun 15, 2026
  2. added theissue type on Jun 15, 2026
  3. added
    front
    and removed
    pending triage
    on Jun 15, 2026
  4. changed the issue type fromtoon Jun 15, 2026
  5. added
    a11y
    on Jun 15, 2026
  6. gameroman commented on Aug 4, 2026

    @gameroman
    Member

    Green = good
    Red = not good

    😄

  7. ghostdevv commented on Aug 4, 2026

    @ghostdevv
    Member

    There's merit to this - I think both in terms of different cultures association with red/green as well as just helping reduce ambiguity. I'd also wonder what different types of colour blindness would do to this page 🤔

  8. mootari commented on Aug 4, 2026

    @mootari
    ContributorAuthor

    @gameroman from the issue description:

    E.g. a package's publish date might receive a yellow background if its last version is older than a certain threshold.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yfront

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions