-
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
Fixes combobox height with appendees #1338
Conversation
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
The OSD ciGroup4 failure is related to a previous PR on switch color changes. #1332 |
// Overrides line-height of 16px coming from ouiFormControlLayout--group .ouiText | ||
.ouiFormControlLayout--group .ouiText { | ||
// sass-lint:disable-block no-important | ||
line-height: 0 !important; |
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.
Is it possible to avoid !important with specificity of selectors? Or are there too many to make that worthwhile?
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.
Even I wasn't happy on this one, I was banking on specificity as these are added under combo box class but then this was necessary as the one I'm overriding had important added to it.
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.
approving as failure is unrelated
--------- Signed-off-by: Shenoy Pratik <[email protected]> (cherry picked from commit f704404) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
--------- (cherry picked from commit f704404) Signed-off-by: Shenoy Pratik <[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
Fixes the height of combo box with appended items. Whenever an append flag is added to single select combo box, the element height increases from 40px to 42px or even 43.33px based on the type of the item appended. This PR keeps the height of all combo box variants to 40px
Issues Resolved
Prior to fix:
Regular combo box
Combo box with an append item
Combo box with OUIText element as append item
Post fix all the combo boxes are on same height of 40px (non compressed) and 32px (compressed)
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.