-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(Sparkline): Apply width, height, and valueTextWidth props to component #35479
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
Merged
AtishayMsft
merged 3 commits into
microsoft:master
from
jesspagan:fix/sparkline-dimension-props
Nov 20, 2025
Merged
fix(Sparkline): Apply width, height, and valueTextWidth props to component #35479
AtishayMsft
merged 3 commits into
microsoft:master
from
jesspagan:fix/sparkline-dimension-props
Nov 20, 2025
+104
−11
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Fix hardcoded width, and height values that ignored custom values from props - Update useEffect dependencies to recalculate scales when dimensions change - Add comprehensive tests for dimension props functionality - Create SparklineDimensions story demonstrating customizable dimensions Fixes issue where Sparkline dimension props were defined but not functional
📊 Bundle size report
Unchanged fixtures
|
|
Pull request demo site: URL |
d74f060 to
e1c43ac
Compare
AtishayMsft
approved these changes
Nov 18, 2025
Contributor
AtishayMsft
left a comment
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.
![]()
Contributor
Author
|
@AtishayMsft Thanks for the approval! Could you please merge this PR since I don't have merge permissions to the master branch? |
Contributor
|
@jesspagan Thanks for your contribution. This PR is merged now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Problem
The Sparkline component had width, height, and valueTextWidth props defined in the SparklineProps type, but these props were not being used in the implementation.
Solution
Testing
Files Changed
Change File