Skip to content
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

[d2l-meter] property for hiding text #4587

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

abcotter
Copy link

Context

Implementation Details

  • add text-hidden prop to meter-mixin
  • begin using the new prop to dynamically inject text beneath the circle meter

Copy link
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-4587/

Note

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

@@ -57,26 +74,33 @@ class MeterCircle extends MeterMixin(RtlMixin(LitElement)) {

const primary = this._primary(this.value, this.max) || '';
const secondary = this._secondary(this.value, this.max, this.text);
const secondaryTextElement = (this.text && !this.textHidden) ? html`<div class="d2l-body-small d2l-meter-circle-text-secondary">${secondary}</div>` : nothing;
Copy link
Author

Choose a reason for hiding this comment

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

there are 3 uses where we need to add text-hidden before we merge this https://d2l.slack.com/archives/C0PHG3QB0/p1712758960144389?thread_ts=1712758381.367159&cid=C0PHG3QB0

components/meter/meter-circle.js Outdated Show resolved Hide resolved
components/meter/meter-mixin.js Outdated Show resolved Hide resolved
components/meter/meter-circle.js Outdated Show resolved Hide resolved
components/meter/meter-mixin.js Outdated Show resolved Hide resolved
components/meter/meter-circle.js Outdated Show resolved Hide resolved
@abcotter abcotter marked this pull request as ready for review April 11, 2024 13:06
@abcotter abcotter requested a review from a team as a code owner April 11, 2024 13:06
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.

None yet

3 participants