Open e111077 opened 4 years ago
cc: @asyncLiz
We originally did this to account for different font type ascenders/descenders who would get cut off with the button's line height.
Do you have a link to the clients who are setting the line height? It'd be curious to know what the use case is (or if it's a way to secretly set the height, which will come later with density for MWC).
One alternate that we could do if it's a valid use case would be to consume the same property but use inherit
as the fallback.
cl/306557841 for reference.
Bug report
the typography theming system's line-height is overridden by this following line:
https://github.com/material-components/material-components-web/blob/master/packages/mdc-button/_mixins.scss#L418
Steps to reproduce
Actual behavior
line-height is set to 20px on the label
Expected behavior
line-height should be set to 50px
Your Environment:
Additional context
internal shadow parts migration
Possible solution
remove it and migrate people