Skip to content

Commit 19b03dc

Browse files
authored
🐛 fix invisible map legend (#67)
1 parent ceee85c commit 19b03dc

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/Spillgebees.Blazor.Map.Assets/src/controls/legendControl.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ describe("LegendControl", () => {
5858

5959
// assert
6060
expect(container.classList.contains("maplibregl-ctrl")).toBe(true);
61-
expect(container.classList.contains("sgb-map-ctrl-group")).toBe(true);
6261
expect(container.classList.contains("sgb-map-legend")).toBe(true);
6362
expect(container.classList.contains("sgb-map-legend-collapsible")).toBe(true);
6463
expect(container.classList.contains("sgb-map-legend-open")).toBe(true);

src/Spillgebees.Blazor.Map.Assets/src/controls/legendControl.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ export class LegendControl implements IControl {
321321
private _buildContainerClassName(): string {
322322
return [
323323
"maplibregl-ctrl",
324-
this._options.collapsible ? "sgb-map-ctrl-group" : null,
325324
"sgb-map-legend",
326325
this._options.collapsible ? "sgb-map-legend-collapsible" : null,
327326
this._isOpen ? "sgb-map-legend-open" : "sgb-map-legend-closed",

0 commit comments

Comments
 (0)