Skip to content

feat(): fix circular and linear progress values in Safari#2269

Open
adrianptrv wants to merge 4 commits into
masterfrom
apetrov/progress-update-props
Open

feat(): fix circular and linear progress values in Safari#2269
adrianptrv wants to merge 4 commits into
masterfrom
apetrov/progress-update-props

Conversation

@adrianptrv

Copy link
Copy Markdown
Contributor

Closes #17210
Same changes as in: #17362

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that causes existing functionality to change)
  • Documentation update
  • Refactoring (code improvements without functional changes)

Checklist

  • My code follows the project's coding standards
  • I have tested my changes locally

Copilot AI left a comment

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.

Pull request overview

This PR addresses a Safari-specific issue with how progress label counters are computed/rendered by adjusting the registered custom property types and ensuring integer values are fed into CSS counters.

Changes:

  • Register --_progress-integer / --_progress-fraction as <number> instead of <integer> via @property.
  • Ensure counter-reset receives integer values by wrapping the custom properties with round(down, …, 1) in both linear and circular progress themes.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/styles/themes/base/_theme.scss Updates registered custom property syntax for progress counters to <number>.
src/components/progress/themes/linear/linear.progress.base.scss Uses round(down, …, 1) to provide valid integer values to counter-reset in Safari.
src/components/progress/themes/circular/circular.progress.base.scss Applies the same counter-reset rounding strategy for circular progress counters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SAFARI] Circular progress bar resets to zero when changing its value

5 participants