Skip to content

Labels: change a label's colour #13

Backlog

Description

@Hitesh-Sisara

You pick a label's colour when you create it, and can't change it afterwards. The label page only offers rename.

What to build

A colour choice on the label page, using the same swatches as the create form.

Where

  • app/routes/mail-label.tsx: the label page, which already uses useUpdateLabel for rename.
  • app/queries/labels.ts: useUpdateLabel already accepts color.
  • app/components/mail/MailSidebar.tsx: LABEL_COLORS and the swatches of the create form. Move the list somewhere both can import it.

Done when

  • The colour can be changed on the label page, by mouse and by keyboard, and the sidebar and message chips show the new colour.
  • Each swatch has an accessible name.
  • There is a test for the new behaviour.

Run it locally with npm run dev:demo (CONTRIBUTING.md).

Activity

  1. added
    enhancement
    good first issue
    on Nov 25, 2026
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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions