MaterialThemeGenerator
MaterialThemeGenerator copied to clipboard
Demo in shrable link dont work
Something appears to be incompatible with the sizing {status: 1, file: @.***/material/theming', line: 4297, column: 27, message: "Incompatible units: 'px' and 'em'.", …}
I just attempted a new style/share link, and this is not occurring. I'm at work now, so I will need to check later and I can get back to you.
On Wed, Apr 27, 2022 at 10:36 AM GIovanni Dias @.***> wrote:
When i create a theme and try share this my changes in demo does not appear
— Reply to this email directly, view it on GitHub https://github.com/arciisine/MaterialThemeGenerator/issues/50, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJUUL2R5D6TQ3CQ5GIVTBTVHFGGZANCNFSM5UPLK4RQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
When trying to copy the generated scss it also accuses errors between em and px
Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: 0.6666666667em and 16px have incompatible units.
╷
164 │ $wrapper-padding-bottom: ($subscript-margin-top + $line-height) * $subscript-font-scale;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
from what I realized the problem is in the fonts specifically in the line-height
when i commented this line, worked fine
// headline: mat.define-typography-level(24px, 32px, 500, 'Montserrat', 0.0000em),
I found the problem, the problem is when you are setting values in Input, input does not support values in PX and EM, but it is possible to edit these values in the editor
Thanks for rooting out the issue. I'll need to figure out if em
/rem
units are possible here, or if it only supports physical units (pt/px). Once I figure it out, I will update accordingly.