Skip to content

Colour Mode Service #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
geometricpanda opened this issue Mar 4, 2023 · 0 comments
Open

Colour Mode Service #16

geometricpanda opened this issue Mar 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@geometricpanda
Copy link
Collaborator

 Description:

Mechanism to set and persist colour mode selection:

Valid colour mode options are:

  • Light
  • Dark
  • System

It should add a CSS class to <body> relating to the selected mode (Light and Dark only)

 Acceptance Criteria:

When Light mode is set

A class of light should be present on <body>
A class of dark should not be present on <body>
Light mode should be retained on refresh

When Dark mode is set

A class of dark should be present on <body>
A class of light should not be present on <body>
Dark mode should be retained on refresh

When System mode is set

A class of light should not be present on <body>
A class of dark should not be present on <body>
System mode should be retained on refresh

@geometricpanda geometricpanda self-assigned this Mar 4, 2023
@geometricpanda geometricpanda changed the title Idea - Colour Mode Service Colour Mode Service Mar 4, 2023
@geometricpanda geometricpanda added the enhancement New feature or request label Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant