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

Resolve Font Size Adjustment Discrepancy Across Cultures #470

Merged
merged 4 commits into from
Aug 9, 2023

Conversation

Bram1903
Copy link
Collaborator

@Bram1903 Bram1903 commented Aug 9, 2023

This pull request focuses on resolving a problem related to inconsistent font size adjustment behavior in the ThemesMenu.razor.cs and LayoutService.cs files for various cultural settings. While an initial attempt was made to address this by incorporating CultureInfo.InvariantCulture into the double.Parse calls, it did not produce the intended outcomes when compared to font size adjustments using the default culture.

This issue has now been successfully rectified thanks to @KindlMichal

@neozhu, can you review this?

Added CultureInfo.InvariantCulture to double.Parse in ThemesMenu.razor.cs and LayoutService.cs to ensure consistent parsing of the default font size between different cultures. This fix is intended to prevent issues that might arise due to different decimal notations in different cultures.
@Bram1903 Bram1903 self-assigned this Aug 9, 2023
@Bram1903 Bram1903 added the Bug Something isn't working label Aug 9, 2023
@Bram1903 Bram1903 marked this pull request as ready for review August 9, 2023 19:35
@Bram1903 Bram1903 requested a review from neozhu August 9, 2023 19:35
Updated the CleanArchitecture Blazor solution template version to 1.0.0-preview.10. This new version resolved a discrepancy involved with font size adjustment across different cultures.
Copy link
Owner

@neozhu neozhu left a comment

Choose a reason for hiding this comment

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

Thank you

@neozhu
Copy link
Owner

neozhu commented Aug 9, 2023

Thank you.
how was your holiday in Norway? I hope you had a wonderful time!

@neozhu neozhu merged commit a971143 into neozhu:main Aug 9, 2023
3 checks passed
@Bram1903
Copy link
Collaborator Author

Thank you.

how was your holiday in Norway? I hope you had a wonderful time!

I'm still in Norway, however the weather is so bad the last past days that I started coding on my laptop 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants