rucko24
(Rubén Espinoza)
November 24, 2024, 2:36am
1
https://vaadin.com/docs/latest/components/upload/styling#file
Hello,
If I use in my styles.css file this:
vaadin-upload-file.my-style::part(row) {
display: none;
border: 1px solid blue;
}
And then
upload.addClassName(“my-style”)
The style is not applied, do you know why?
knoobie
(Christian Knoop)
November 24, 2024, 5:28am
2
Why would you think that applying a class name to “vaadin-upload” would propagate it to its children “vaadin-upload-file”? Did you check the DOM in your browser?
rucko24
(Rubén Espinoza)
November 24, 2024, 10:17am
3
The same is not being replicated to their children, that’s what is happening to me.
Soo, i should be using this approach, what do you think ?
knoobie
(Christian Knoop)
November 24, 2024, 11:10am
4
Before I go into more details… did you try the obvious one?
vaadin-upload.my-style vaadin-upload-file (… Insert here more …)
rucko24
(Rubén Espinoza)
November 24, 2024, 11:59am
5
This works pretty well, damnnn
I didn’t need to use @CssImport , it’s much more like that, plus the new hot swap functionality of the css without redeploy…