-
Notifications
You must be signed in to change notification settings - Fork 514
Description
Issue from Slack Chat:
Hey, a question. Is there a reason for 1rem to be 16 and not 10px in Liferay 7.1 ga1 in the Classic Theme? (i know 16px is default but isn't 10px the best practice?)
you’d set
font-size: 62.5%, then have 1rem map to 10px so the conversion is simpler, 2.4rem == 24px
Changing this outright in Atlas would break any theme currently extending it.
-
We could create a function that returns a rem value based on the document's base font size and a pixel value. We would have to wrap every rem value we use in that function. We would also have to overwrite all Bootstrap 4 variables that use rem values with this new pattern. I'm also not sure if this will work 100%. I've done a limited test and it's working but there are probably edge cases.
-
Another option is to provide a base 10px or 62.5% variable theme in the compatibility layer.
-
The final option I can think of is to offer a third party variable theme with base 10px or 62.5%.
All 3 of these options will only provide support for Sass inside our themes. Any Sass provided by our widgets and other plugins will have to be customized.