-
Notifications
You must be signed in to change notification settings - Fork 87
refactor: scroller and virtual-list overflow-indicators #10433
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
Conversation
9673c03 to
0e96229
Compare
0e96229 to
e6776af
Compare
| flex: 1; | ||
| align-self: stretch; | ||
| box-sizing: border-box; | ||
| padding: 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.
Just to double check, do we need to enforce !important here to avoid messing up calculations?
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.
Yeah, that was the thinking. I went back and forth with this, and perhaps we should do it, and only document that if you use the standard padding property on the host it’ll break the overflow indicators.
| --vaadin-virtual-list-padding-block: 0px; | ||
| --vaadin-virtual-list-padding-inline: 0px; |
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.
Are these supposed to be used by Aura? Also, should we document them in the JSDoc API?
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 don't think themes would set those by default. They are intended more for app devs if they want to apply padding to the scroll containers. But regardless, they should be documented, yes.
|



Add support for setting padding on scroller and virtual-list components while still keeping the overflow indicators visually in correct locations.