Active
Project:
Claro
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Feb 2021 at 16:38 UTC
Updated:
21 Sep 2026 at 14:49 UTC
Jump to comment: Most recent
Follow up to Issue #3116377: Autocomplete input in views exposed filters does not align with select and text inputs.
There are several places on the code where line-height is directly defined per the component and makes the code less maintainable. Also, a lot of times measures are based on pixels (px or rems) while using percentages would be more reusable.
line-height: 1.2) instead or individual pixel-based values(line-height: 18px or line-height: 1.125rem;)Line-height will change on several components.
Comments
Comment #2
ckrinaComment #3
gauravvvv commentedUnitless Line Heights
The recommended method for defining line-height is using a number value, referred to as a “unitless” line-height. A number value can be any number, including a decimal-based number, as is used in the first code example on this page.
Unitless line heights are recommended due to the fact that child elements will inherit the raw number value, rather than the computed value. With this, child elements can compute their line heights based on their computed font size, rather than inheriting an arbitrary value from a parent that is more likely to need overriding.
https://css-tricks.com/almanac/properties/l/line-height/#unitless-line-h...
Comment #10
quietone commentedComment #11
smustgrave commentedClaro has moved to contrib