googlemaps / googlemaps/extended-component-library

Use parts to allow customizing styles

Open
#192 4 comments 4 reactions 0 assignees View on GitHub
type: feature request
Dominant language
TypeScript
Stars
192
Forks
22
Avg merge
2d 23h
Merged PRs (30d)
8

Description

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](https://developer.mozilla.org/en-US/docs/Web/CSS/::part) 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.

![image](https://github.com/googlemaps/extended-component-library/assets/22448633/3603d9c5-b9c2-4f08-90f2-42c32fb0d297)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.