Styling elements in shadow root

How can i style “#scroller” element in vaadin-grid?

image

vaadin-grid #scroller is not working. Thanks for answer :)

It has no part attribute and can’t be accessed from outside. You need to use the old way of providing a components/vaadin-grid.css and access it from there

1 Like

What’s the use case that you want to achieve? The #scroller element is considered an implementation detail and even though it’s possibly to inject styles into shadow root, you shouldn’t target this element (and any other elements without part attribute).