Skip to content

add color fallback support#7522

Open
fikrydev wants to merge 8 commits into
mainfrom
fix/add-color-fallback-support
Open

add color fallback support#7522
fikrydev wants to merge 8 commits into
mainfrom
fix/add-color-fallback-support

Conversation

@fikrydev
Copy link
Copy Markdown
Contributor

Summary

Add fallback definition for colors that was broken on lighthouse

Copilot AI review requested due to automatic review settings May 15, 2026 16:04
@fikrydev fikrydev requested review from a team as code owners May 15, 2026 16:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new shared stylesheet intended to define fallback theme color custom properties and includes it in the local SCSS entrypoint.

Changes:

  • Adds commons/ThemeColours.scss with light/dark theme color variables and CSS custom property assignments.
  • Includes the new theme colors stylesheet from stylesheets/Main.scss.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
stylesheets/Main.scss Adds the new theme color fallback stylesheet to the SCSS entrypoint.
stylesheets/commons/ThemeColours.scss Defines fallback light/dark theme color custom properties.
Comments suppressed due to low confidence (2)

stylesheets/commons/ThemeColours.scss:173

  • The dark-theme wiki color assignments have the same undefined Sass variables as the light block ($clr-wiki-...--dark is not defined anywhere in the stylesheets). Even if the light block is fixed, these references will still break the SCSS build unless the fallback values are defined or imported.
	--clr-wiki-theme-primary: #{$clr-wiki-theme-primary--dark};
	--clr-wiki-primary: #{$clr-wiki-primary--dark};
	--clr-wiki-on-primary: #{$clr-wiki-on-primary--dark};
	--clr-wiki-primary-container: #{$clr-wiki-primary-container--dark};
	--clr-wiki-on-primary-container: #{$clr-wiki-on-primary-container--dark};

stylesheets/commons/ThemeColours.scss:168

  • This dark-theme selector repeats the new single-colon pseudo-element form; the existing SCSS consistently uses ::before/::after for pseudo-elements (for example stylesheets/Main.scss:81-82 and stylesheets/commons/Colours.scss:689-690). Use the double-colon form here as well for consistency.
html.theme--dark,
html.theme--dark:before,
html.theme--dark:after {

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread stylesheets/commons/ThemeColours.scss Outdated
Comment on lines +118 to +122
--clr-wiki-theme-primary: #{$clr-wiki-theme-primary--light};
--clr-wiki-primary: #{$clr-wiki-primary--light};
--clr-wiki-on-primary: #{$clr-wiki-on-primary--light};
--clr-wiki-primary-container: #{$clr-wiki-primary-container--light};
--clr-wiki-on-primary-container: #{$clr-wiki-on-primary-container--light};
Comment thread stylesheets/commons/ThemeColours.scss Outdated
Comment on lines +116 to +117
html.theme--light:before,
html.theme--light:after {
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.

4 participants