-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dropdown on store page #11534
Conversation
&__label { | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 0; | ||
color: var(--label-colour); | ||
font-size: @font-size--normal; | ||
padding: var(--label-padding-base) var(--input-padding-base) 0; | ||
padding: 5px var(--input-padding-base) 0; | ||
position: absolute; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can do with a comment on why it's position: absolute
, also a note for the sizing of --label-height
(or calculate it instead?)
@@ -3,7 +3,9 @@ | |||
|
|||
.input-container { | |||
--label-font-size: @font-size--normal; | |||
--label-height: calc(var(--label-font-size) + var(--input-padding-base) + 5px); | |||
--label-height: calc( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be font-size * 1.25 (the line-height) + padding base
tbh 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh close enough 🤷
wait no, that was with wrong padding - it should be 5px both sides |
wut |
Some hack involving floating the label is involved 🔧