Closed RichardD2 closed 3 years ago
I originally wanted to not use inherit
because I was thinking the developer could not be trusted with having a good-looking line-height by default, so I had it set to 1.1
. I will contemplate of a solution
Funny because I was just reading this article recently: https://css-tricks.com/how-to-tame-line-height-in-css
Prerequisites
💥 Demo Page
https://jsfiddle.net/RichardD/rkmgs84t/1/
Explanation
When using particular fonts and font sizes, having the
line-height
set to1.1
causes descenders to be obscured - specifically for lower-case letters g, j, p, q, and y. In this specific case, I'm using Bootstrap 4.6, which sets:https://jsfiddle.net/RichardD/rkmgs84t/1/
Workaround:
Setting
line-height: inherit;
on both the.tagify
and.tagify__input::before
rules resolves the problem:https://jsfiddle.net/RichardD/rkmgs84t/2/