Skip to content

Comments

feat: Add support for theme fixture option#902

Open
GZolla wants to merge 2 commits intomainfrom
gzolla/dark-mode-fixture
Open

feat: Add support for theme fixture option#902
GZolla wants to merge 2 commits intomainfrom
gzolla/dark-mode-fixture

Conversation

@GZolla
Copy link
Contributor

@GZolla GZolla commented Feb 17, 2026

GAUD-9494

These are the part of the changes that don't require any refactoring. We would add tests like we do for rtl just adding the option to the fixture.

@GZolla GZolla requested a review from a team as a code owner February 17, 2026 22:13
}
body {
background-color: #ffffff;
background-color: var(--d2l-color-background-base);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be:

background-color: var(--d2l-color-container-base, #ffffff);

On the next line, I might suggest also setting:

color: var(--d2l-color-text-static-standard, #202122);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are the palette variables that are currently proposed: BrightspaceUI/core#6585.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These --d2l-color-* variables will never actually be defined though right? Like nothing's including core's color palette and can't because this repo can't depend on core.

Copy link
Contributor Author

@GZolla GZolla Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if colors are not included then dark mode would not work either. Since to use dark mode you would need to include it, this just makes the background and color with dark mode work with tests

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As soon as a component imports colors.js, these variables will be defined.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah true, haha so ironically the testing library can't test its own dark mode

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants