-
Notifications
You must be signed in to change notification settings - Fork 45
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
DS-680 Select icon placement bug #2393
Conversation
@colbytcook went over it again today to fix the issue mentioned in ticket DS-680 |
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.
This is a component bug, we shouldn't just add utility classes to the mockups but fix the component instead.
@mikemai2awesome if we cannot use utility classes like for example |
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.
@MarcinMr We can't just target all inputs, this is specific to select, so you'd need to scope it:
.c-bolt-block-label,
.c-bolt-hidden-label {
.c-bolt-input.is-filled,
.c-bolt-input:focus {
padding: calc(var(--bolt-spacing-y-medium) / 2 - 1px)
var(--bolt-spacing-x-small); // [Mai] medium/2 matches button vertical spacing.
@include bolt-mq($until: small) {
padding-top: calc(var(--bolt-spacing-y-medium) / 2 - 0.1875rem);
padding-bottom: calc(var(--bolt-spacing-y-medium) / 2 - 0.25rem);
}
}
.c-bolt-input--select.is-filled,
.c-bolt-input--select.focus {
padding-right: calc(var(--bolt-spacing-x-small) + 1.5rem);
}
}
Also update instances of 24px to 1.5rem, there is a comment in there reminding us to update: 24px is icon size, if icon component changes, this needs to update as well.
.
@mikemai2awesome updated 24px to 1.5rem and used fixing styles only for the select element. |
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.
@MarcinMr Looks good.
Jira
https://pegadigitalit.atlassian.net/browse/DS-680
Summary
The chevrons in the select filters within the Best of Content pages were fixed.
Details
On Best of Content pages, select chevron icons were overlaping the text :
Additionally, on the Calculator - Results I found accidentally a bug related to color theming on those two colorful rectangles. I made a quick fix.
How to test
Pull the branch. Check if the select fields on the BoC pages display correctly, without overlapping the text. Confirm there're no more broken selects with chevron icons overlapping the text.