Skip to content

Update calendar components to use semantic palette#6724

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

Update calendar components to use semantic palette#6724
GZolla wants to merge 2 commits intomainfrom
gzolla/dark-mode-calendar

Conversation

@GZolla
Copy link
Copy Markdown
Contributor

@GZolla GZolla commented Mar 27, 2026

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6724/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

--d2l-theme-text-color-interactive-hover: var(--d2l-theme-brand-color-primary-hover);
--d2l-theme-text-color-static-faint: var(--d2l-color-galena);
--d2l-theme-text-color-static-inverted: #ffffff;
--d2l-theme-text-color-static-opaque: rgba(32, 33, 34, 0.5); /* --d2l-theme-text-color-static-standard at 50% opacity, remove once color-mix is widely supported */
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This variable is used in other places where we need to make text opaque but can't set opacity (e.g. disabled tooltips).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assuming they add this to the palette and re-extract from Figma, the script will convert the value to 8-char HEX color.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks like this should be updated as well.

background-color: white;
color: rgba(73, 76, 78, 0.5);
background-color: var(--d2l-theme-background-color-base);
color: var(--d2l-theme-text-color-static-opaque);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's be sure to add this to the document under d2l-calendar. (like we did for count-badge)

}
}

@supports (color: color-mix(in srgb, black 50%, transparent)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this needed if we are setting them above?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the change that would stay after color-mix is supported since it uses semantic variables directly. The other definitions is made for old browser support(although those browsers will probably go away next version update)

@GZolla GZolla marked this pull request as ready for review March 31, 2026 21:46
@GZolla GZolla requested a review from a team as a code owner March 31, 2026 21:46
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.

2 participants