Skip to content

Update meter to support semantic variables#6913

Open
GZolla wants to merge 1 commit into
mainfrom
gzolla/dark-meter
Open

Update meter to support semantic variables#6913
GZolla wants to merge 1 commit into
mainfrom
gzolla/dark-meter

Conversation

@GZolla
Copy link
Copy Markdown
Contributor

@GZolla GZolla commented May 5, 2026

GAUD-9473

Note: Like menu, the meter components supports a "theme", by forcing light colors using foreground-light. Like in the menu changes, this PR does not address this colors.

@GZolla GZolla requested a review from a team as a code owner May 5, 2026 01:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

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-6913/

Note

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

}

.d2l-meter-linear-full-bar {
background-color: var(--d2l-color-gypsum);
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.

If you haven't already, I think it would be worth discussing this mapping with Jeff since this isn't really an interactive element.


.d2l-meter-linear-inner-bar {
background-color: var(--d2l-color-celestine);
background-color: var(--d2l-theme-brand-color-primary-default);
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.

Would be worth confirming this mapping - we don't have a semantic variable for this type of thing (progress, level of a meter).

}
.d2l-meter-full-bar {
stroke: var(--d2l-color-gypsum);
stroke: var(--d2l-theme-border-color-subtle);
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.

This is effectively being used as a background color, so this doesn't seem right to me. --d2l-theme-background-color-interactive-secondary-default maps to gypsum, but that doesn't seem right either, since this isn't really an interactive element.

stroke: rgba(255, 255, 255, 0.5);
}
.d2l-meter-progress-bar {
stroke: var(--d2l-color-celestine);
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.

Ditto with this one. Might be ok, but we should confirm that we want this to be the brand color.

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