-
Notifications
You must be signed in to change notification settings - Fork 8
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
Listbox padding #2341
Listbox padding #2341
Conversation
@@ -220,6 +220,7 @@ export const styles = css` | |||
box-shadow: ${elevation2BoxShadow}; | |||
border: ${borderWidth} solid ${popupBorderColor}; | |||
background-color: ${applicationBackgroundColor}; | |||
padding: var(--ni-private-listbox-padding); |
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.
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.
There are also some suspicious Chromatic diffs. For example, the Search field seems squished and the No items found item seems taller
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.
@fredvisser fyi the latest commit does still seem to impact the scrollbar, notice the top and bottom of the list box:
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.
Closing the loop - the initial behavior (padding around the scrollbar) is the intended design.
However, @atmgrifter00 says he has this fix in a branch, so I'll abandon this PR.
Pull Request
π€¨ Rationale
Brandon noted that the visual design for select, combobox, and mention, specifies a 4px 'mat' around the options, even when the content is scrolling.
π©βπ» Implementation
Screen.Recording.2024-08-09.at.3.31.34.PM.mp4
padding: var(--ni-private-listbox-padding);
from the scrollable content, to the fixed listbox containercombobox
template more consistent with theselect
template, so the shared styling at the same effect (i.e. moved thescrollable-region
class into it's own div)π§ͺ Testing
β Checklist