Closed agazso closed 1 month ago
When putting a Typography component with variant small in a flex container and using an icon of size 16, the vertical alignment of the text is broken.
Typography
small
16
I tried out using different elements but that does not make a difference.
Reproducible example: https://github.com/snaha-net/diete.design/pull/341
Workaround: wrap the icon and Typography in a span element which has display: inherit.
span
display: inherit
This could also work as a solution, by adding display: inherit to the .root class of the Typography component.
.root
When putting a
Typography
component with variantsmall
in a flex container and using an icon of size16
, the vertical alignment of the text is broken.I tried out using different elements but that does not make a difference.
Reproducible example: https://github.com/snaha-net/diete.design/pull/341