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

fix(date-picker): fix year-select width logic #11071

Merged

Conversation

jcfranco
Copy link
Member

@jcfranco jcfranco commented Dec 16, 2024

Related Issue: #10731

Summary

Fixes a text width logic issue where font would be empty instead of the expected shorthand value.

This also moves the text-width calculation logic to a requestAnimationFrame callback to improve timing and performance.

BEGIN_COMMIT_OVERRIDE
END_COMMIT_OVERRIDE

@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Dec 16, 2024
@jcfranco jcfranco added no changelog entry Use the commit override to avoid a changelog entry pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Dec 16, 2024
Copy link
Member

@benelan benelan left a comment

Choose a reason for hiding this comment

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

shakes fist at browsers

Copy link
Contributor

@anveshmekala anveshmekala left a comment

Choose a reason for hiding this comment

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

🥇

Tested & works as expected.

Browser might have fixed the font object issue of returning empty string. Discussed with @jcfranco regarding this and there will be a followup spike.

@jcfranco jcfranco merged commit d8fe3ff into dev Dec 16, 2024
27 of 28 checks passed
@jcfranco jcfranco deleted the jcfranco/fix-date-picker-month-header-width-calculation branch December 16, 2024 22:42
@github-actions github-actions bot added this to the 2024-12-17 - Dec Milestone milestone Dec 16, 2024
@jcfranco
Copy link
Member Author

Discussed with @jcfranco regarding this and there will be a followup spike.

Created follow-up spike issue: #11077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. no changelog entry Use the commit override to avoid a changelog entry pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants