css: Fix "line-height: inherit" values for textarea.

Instead of using "line-height: inherit" we set the line-height
property to actual value which will be a less mysterious value
than using inherit. We now set this to "--base-line-height-unitless"
which changes the line-height value as previously it was
inherited from body which is set to maximum of the base line
height value and the fixed legacy value of 1.43.

This means that the line-height of textarea will now be set to
the configured line spacing value by user while previously
it was not set to the line spacing values less than the default
value as it was inherited from the value set to body.
This commit is contained in:
Sahil Batra 2025-11-19 14:54:58 +05:30 committed by Tim Abbott
parent 365a83c153
commit 39efe4e214
4 changed files with 4 additions and 4 deletions

View File

@ -1079,7 +1079,7 @@ textarea.new_message_textarea {
box-shadow: none;
font-size: 1em;
line-height: inherit;
line-height: var(--base-line-height-unitless);
font-family: "Source Sans 3 VF", sans-serif;
&:focus {

View File

@ -865,7 +865,7 @@
box-shadow: none;
font-size: 1em;
line-height: inherit;
line-height: var(--base-line-height-unitless);
font-family: "Source Sans 3 VF", sans-serif;
&:focus {

View File

@ -31,6 +31,6 @@
background-color: var(--background-color-textarea);
font-size: 1em;
line-height: inherit;
line-height: var(--base-line-height-unitless);
font-family: "Source Sans 3 VF", sans-serif;
}

View File

@ -1782,7 +1782,7 @@ label.preferences-radio-choice-label {
box-shadow linear 0.2s;
font-size: 1em;
line-height: inherit;
line-height: var(--base-line-height-unitless);
font-family: "Source Sans 3 VF", sans-serif;
&:focus {