Skip to content

Commit ceeb928

Browse files
authored
refactor: update map Lumo CSS to extend base styles (#9656)
1 parent dc923df commit ceeb928

File tree

3 files changed

+31
-280
lines changed

3 files changed

+31
-280
lines changed

packages/map/src/styles/vaadin-map-base-styles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,12 +362,12 @@ export const mapStyles = css`
362362
mask-image: var(--vaadin-map-icon-zoom-out, var(--_vaadin-icon-minus));
363363
}
364364
365-
button.ol-zoom-in {
365+
.ol-zoom button.ol-zoom-in {
366366
border-bottom-left-radius: 0;
367367
border-bottom-right-radius: 0;
368368
}
369369
370-
button.ol-zoom-out {
370+
.ol-zoom button.ol-zoom-out {
371371
border-top-left-radius: 0;
372372
border-top-right-radius: 0;
373373
}

packages/map/src/vaadin-map.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ class Map extends MapMixin(ThemableMixin(ElementMixin(LumoInjectionMixin(Polylit
7070
return mapStyles;
7171
}
7272

73+
static get lumoInjector() {
74+
return {
75+
includeBaseStyles: true,
76+
};
77+
}
78+
7379
/** @protected */
7480
render() {
7581
return html``;

0 commit comments

Comments
 (0)