Skip to content

Unable to style new address autocomplete widget after upgrading to 21.0.2 #49

Description

@shilpasebastian-2000

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:

Image

Thanks,
Shilpa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions