Hi team
After updating shipperhq/module-address-autocomplete from 20.6.8 → 21.0.2, we noticed that a new address autocomplete widget has been introduced.
This widget uses Google’s gmp-place-autocomplete, which renders its input inside a closed shadow root. Because of this, any styling applied after the component is initialized cannot reach the internal input elements.
We were able to add a class on the element before the shadow root is created, but deeper styling (input height, padding, borders, focus/error states, etc.) isn’t possible. This results in visual inconsistency with our existing checkout fields, especially since this is a newly added widget.
Could you please advise if there is a supported way to control styling ?
We’d like to understand the recommended approach so the widget can visually align with the rest of the checkout fields.
Attaching the image of newly added widget:
Thanks,
Shilpa
Hi team
After updating shipperhq/module-address-autocomplete from 20.6.8 → 21.0.2, we noticed that a new address autocomplete widget has been introduced.
This widget uses Google’s gmp-place-autocomplete, which renders its input inside a closed shadow root. Because of this, any styling applied after the component is initialized cannot reach the internal input elements.
We were able to add a class on the element before the shadow root is created, but deeper styling (input height, padding, borders, focus/error states, etc.) isn’t possible. This results in visual inconsistency with our existing checkout fields, especially since this is a newly added widget.
Could you please advise if there is a supported way to control styling ?
We’d like to understand the recommended approach so the widget can visually align with the rest of the checkout fields.
Attaching the image of newly added widget:
Thanks,
Shilpa