Hide calendar picker indicator #150
-
I would like to remove the calendar picker indicator for a wa-input type time or date, but can't seem to scope it the right way. Normally I would just do:
but converting it to wa-input doesn't seem to work, I've tried both:
and
without luck. I think it's because it's a "shadow dom within a shadow dom"? Is it possible to hide these indicators for wa-inputs? (For now I'm just using plain inputs styled by WA which works, but I would like to use wa-inputs). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The platform doesn't allow targeting pseudo selectors inside shadow roots, so I don't have a good answer for you without injecting custom styles into the shadow root with JS (not recommended). What's your use case? We may be able to facilitate it with an API improvement in an upcoming release. |
Beta Was this translation helpful? Give feedback.
-
Got it, thanks! For now, have you seen this page? You can get WA styles using native elements, too. https://backers.webawesome.com/docs/native/input#time-and-date-pickers |
Beta Was this translation helpful? Give feedback.
The platform doesn't allow targeting pseudo selectors inside shadow roots, so I don't have a good answer for you without injecting custom styles into the shadow root with JS (not recommended).
What's your use case? We may be able to facilitate it with an API improvement in an upcoming release.