Skip to content

[meter] Format clamped values - #5409

Merged
atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/fix-meter-clamped-formatting
Aug 4, 2026
Merged

atomiks merged 2 commits into
mui:masterfrom
atomiks:codex/fix-meter-clamped-formatting

Conversation

@atomiks

@atomiks atomiks commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Meter formatted explicit values from the raw value even when the indicator and ARIA range value were clamped. This could make a full meter display and announce a value above its maximum.

Changes

  • Format visible and accessible Meter values from the clamped range value.
  • Keep the raw value available to getAriaValueText and cover the callback contract.
  • Clarify the shared Meter and Progress formatting invariant.

@atomiks atomiks added type: bug It doesn't behave as expected. component: meter Changes related to the meter component. accessibility a11y labels Aug 4, 2026
@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@5409
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5409
    

commit: 7f3b1bd

@atomiks atomiks added accessibility a11y and removed accessibility a11y labels Aug 4, 2026
@atomiks
atomiks enabled auto-merge (squash) August 4, 2026 02:49
@code-infra-dashboard

code-infra-dashboard Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 0B(0.00%) 🔺+1B(0.00%)

Details of bundle changes

Performance

Total duration: 1,433.96 ms +87.28 ms(+6.5%) | Renders: 78 (+0) | Paint: 2,231.38 ms +118.30 ms(+5.6%)

Test Duration Renders
Slider mount (300 instances) 163.50 ms 🔺+46.56 ms(+39.8%) 2 (+0)
Checkbox mount (500 instances) 118.16 ms 🔺+32.42 ms(+37.8%) 1 (+0)
Tooltip mount (300 contained roots) 74.30 ms 🔺+14.72 ms(+24.7%) 1 (+0)
Menu open (500 items) 78.49 ms ▼-21.84 ms(-21.8%) 12 (+0)

11 tests within noise — details

Metric alarms

Test Metric Change
Slider mount (300 instances) bench:paint 🔺 +76.39 ms
Checkbox mount (500 instances) bench:paint 🔺 +37.85 ms
Tooltip mount (300 contained roots) bench:paint 🔺 +27.41 ms

Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 7f3b1bd
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a715495ccf1b90008bdb0a8
😎 Deploy Preview https://deploy-preview-5409--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks disabled auto-merge August 4, 2026 02:53
@atomiks
atomiks merged commit 9222cda into mui:master Aug 4, 2026
6 checks passed
@atomiks
atomiks deleted the codex/fix-meter-clamped-formatting branch August 4, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility a11y component: meter Changes related to the meter component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant