-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix combobox appearance when compressed and in-group #1371
Fix combobox appearance when compressed and in-group #1371
Conversation
61122b4
to
af9a9bc
Compare
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 you post a screenshot? Just want to relate the changes to reality
} | ||
|
||
.ouiComboBoxPill--plainText { | ||
line-height: calc($ouiSizeL - 2px); |
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.
Why ouiSizeL? What is the 2px based on? borders?
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.
$ouiSizeL
is the original value for the line-height
of .ouiComboBoxPill--plainText
. However, all in-group elements have a - 2px
either by using $ouiFormControlLayoutGroupInputCompressedHeight
or when the values are not standard, by directly performing the - 2px
. This is because the group wrapper adds a top and bottom border around the entire group.
Also: * Adjust prepend and appends in form layouts Signed-off-by: Miki <[email protected]>
af9a9bc
to
a5315f8
Compare
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.
Thanks for diff
@@ -76,6 +76,20 @@ | |||
&.ouiComboBox__inputWrap-isLoading.ouiComboBox__inputWrap-isClearable { | |||
@include ouiFormControlLayoutPadding(3); /* 2 */ | |||
} | |||
|
|||
&--inGroup#{&}--compressed { |
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.
didn't realize interpolation worked inside selectors
) Also: * Adjust prepend and appends in form layouts Signed-off-by: Miki <[email protected]> (cherry picked from commit ce392b5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
) (#1372) Also: * Adjust prepend and appends in form layouts (cherry picked from commit ce392b5) Signed-off-by: Miki <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Fix combobox appearance when compressed, with pills, and in group
Also:
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.