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

[Meter] Implement Meter #662

Open
Tracked by #10
colmtuite opened this issue Sep 30, 2024 · 2 comments · May be fixed by #743
Open
Tracked by #10

[Meter] Implement Meter #662

colmtuite opened this issue Sep 30, 2024 · 2 comments · May be fixed by #743
Assignees
Labels
new feature New feature or request

Comments

@colmtuite
Copy link
Contributor

colmtuite commented Sep 30, 2024

Meter pattern: https://www.w3.org/WAI/ARIA/apg/patterns/meter/

TBD

  • The optimum attribute and related feature is only relevant to sighted users 1. Is there a use-case for making a style hook out of it? e.g. set [data-optimum] when the value is in the "optimum" segment (high, medium, or low, as determined by high/low/min/max props)

Footnotes

  1. https://www.htmhell.dev/adventcalendar/2022/5/

@github-actions github-actions bot added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 30, 2024
@colmtuite colmtuite removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 30, 2024
@zannager zannager added the new feature New feature or request label Sep 30, 2024
@oliviertassinari
Copy link
Member

oliviertassinari commented Sep 30, 2024

Reminds me a bit of mui/material-ui#22472 about the Stat component and which Sebastian asked about Meter. I guess success would be if it Base UI Meter component helps build a Stat component.

@colmtuite
Copy link
Contributor Author

A generic stat like this is prob not an appropriate use of <meter>. Meter is typically used to indicate how much of x is left. Like a battery indicator or disk space indicator. But in any case, we'll just implement it based on ARIA and other guidelines and people can build on it however they want.

@mj12albert mj12albert linked a pull request Oct 17, 2024 that will close this issue
@michaldudak michaldudak changed the title [meter] Implement Meter [Meter] Implement Meter Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

4 participants