Skip to content

feat(google-maps): allow map to be styled natively instead of through inputs #19732

Closed
@markgoho

Description

@markgoho

Feature Description

Currently, the google-map object takes a height and width input which are then coerced to px values. This appears to break whenever a value is provided that isn't a css length unit.

Use Case

I'd like to set the height of the google to be calc(100vh - var(--header-height)). Unfortunately, because the api is designed to use these inputs as inline styles I'm forced to use !important to override the default 500px values. For example, if I use css in the global scope:

.map-container {
  height: calc(100vh - var(--header-height));
  width: 100%;
}

what you end up with is:
image
and
image

Solution

Remove the inputs and allow folks to style the map natively using css.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions