-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use parts to allow customizing styles #192
Comments
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. 🙏
This is an automated message, feel free to ignore. |
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 |
Being able to style the input border, font style, and text color are necessary for a clean and consistent UI integration. For the input box, it's important also to be able to style the :focus pseudo elements as well. |
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: