-
Notifications
You must be signed in to change notification settings - Fork 31
Update meter to support semantic variables #6913
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,7 +48,7 @@ class MeterLinear extends MeterMixin(LitElement) { | |
| } | ||
|
|
||
| .d2l-meter-linear-full-bar { | ||
| background-color: var(--d2l-color-gypsum); | ||
| background-color: var(--d2l-theme-background-color-interactive-secondary-default); | ||
| position: relative; | ||
| } | ||
|
|
||
|
|
@@ -57,7 +57,7 @@ class MeterLinear extends MeterMixin(LitElement) { | |
| } | ||
|
|
||
| .d2l-meter-linear-inner-bar { | ||
| background-color: var(--d2l-color-celestine); | ||
| background-color: var(--d2l-theme-brand-color-primary-default); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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). |
||
| inset-inline-start: 0; | ||
| max-width: 100%; | ||
| position: absolute; | ||
|
|
@@ -68,7 +68,7 @@ class MeterLinear extends MeterMixin(LitElement) { | |
| } | ||
|
|
||
| .d2l-meter-linear-text { | ||
| color: var(--d2l-color-ferrite); | ||
| color: var(--d2l-theme-text-color-static-standard); | ||
| display: flex; | ||
| flex-direction: row; | ||
| gap: 0.45rem; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,20 +13,20 @@ export const meterStyles = css` | |
| stroke-linecap: round; | ||
| } | ||
| .d2l-meter-full-bar { | ||
| stroke: var(--d2l-color-gypsum); | ||
| stroke: var(--d2l-theme-border-color-subtle); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| } | ||
| :host([foreground-light]) .d2l-meter-full-bar { | ||
| stroke: rgba(255, 255, 255, 0.5); | ||
| } | ||
| .d2l-meter-progress-bar { | ||
| stroke: var(--d2l-color-celestine); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| stroke: var(--d2l-theme-brand-color-primary-default); | ||
| } | ||
| :host([foreground-light]) .d2l-meter-progress-bar { | ||
| stroke: white; | ||
| } | ||
| .d2l-meter-text { | ||
| color: var(--d2l-color-ferrite); | ||
| fill: var(--d2l-color-ferrite); | ||
| color: var(--d2l-theme-text-color-static-standard); | ||
| fill: var(--d2l-theme-text-color-static-standard); | ||
| line-height: 0.8rem; | ||
| text-align: center; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
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.