You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently encountered an issue when trying to use the opsz font variation with the "Material Symbols" library. My expectation was that setting the opsz value would directly influence the font size of the icon, but this did not seem to be the case. Instead, I had to manually adjust the fontSize in CSS to achieve the desired size.
Steps to Reproduce:
Use the Material Symbols library in a Next.js project.
Create a React component to display an icon with the opsz value set to 48.
Observe that the icon does not scale to the expected size.
Workaround:
Setting the fontSize directly in CSS works as expected.
Suggested Resolution:
It would be helpful if the documentation clarified the relationship (or lack thereof) between opsz and the actual rendered font size. Additionally, providing guidance on how users can correctly scale icons would be beneficial.
Thank you for your attention to this matter, and I appreciate the hard work that has gone into the library!
The text was updated successfully, but these errors were encountered:
Hello,
I recently encountered an issue when trying to use the opsz font variation with the "Material Symbols" library. My expectation was that setting the opsz value would directly influence the font size of the icon, but this did not seem to be the case. Instead, I had to manually adjust the fontSize in CSS to achieve the desired size.
Steps to Reproduce:
Use the Material Symbols library in a Next.js project.
Create a React component to display an icon with the opsz value set to 48.
Observe that the icon does not scale to the expected size.
Workaround:
Setting the fontSize directly in CSS works as expected.
Suggested Resolution:
It would be helpful if the documentation clarified the relationship (or lack thereof) between opsz and the actual rendered font size. Additionally, providing guidance on how users can correctly scale icons would be beneficial.
Thank you for your attention to this matter, and I appreciate the hard work that has gone into the library!
The text was updated successfully, but these errors were encountered: