You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to control the styling of web components better, so that they are more in line with the rest of the design when necessary. For example: I'm using the gmpx-place-picker in a bigger form, and there's currently no way to change the input border.
A solution would be to use the part selector to target inner element when necessary.
An alternative would be to use more variables and less hardcoded values in the css and overwrite them. But I'm afraid that will either not be sufficiently detailed enough or bloat the code too much.
The text was updated successfully, but these errors were encountered:
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.
@maloua Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:
Hey! Thanks for raising this. As you mention, we could make more aspects of the styling customizable with CSS variables, but this could end up reinventing the wheel. Exposing CSS ::part() could be a good approach for targeted elements like the input which are unlikely to change as part of the internal implementation.
@awmack as @maloua Mentioned there is currently no way to style the border, the easiest solution would be to expose CSS variables until a more robust styling API is in place.
I would like to be able to control the styling of web components better, so that they are more in line with the rest of the design when necessary. For example: I'm using the
gmpx-place-picker
in a bigger form, and there's currently no way to change the input border.A solution would be to use the part selector to target inner element when necessary.
An alternative would be to use more variables and less hardcoded values in the css and overwrite them. But I'm afraid that will either not be sufficiently detailed enough or bloat the code too much.
The text was updated successfully, but these errors were encountered: