Skip to content

Commit 0717244

Browse files
committed
feat(layer-selector): add high contrast base map token
1 parent e7030fc commit 0717244

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

packages/utah-design-system/src/components/LayerSelector.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function Default() {
7878
}),
7979
},
8080
'Lite',
81+
'High Contrast',
8182
];
8283

8384
const baseLayers: BaseLayerConfigOrToken[] = [

packages/utah-design-system/src/components/LayerSelector.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const basemapTokens = {
2929
lite: 'Lite',
3030
colorIR: 'Color IR',
3131
hybrid: 'Hybrid',
32+
highContrast: 'High Contrast',
3233
} as const;
3334

3435
export type BasemapToken = (typeof basemapTokens)[keyof typeof basemapTokens];

packages/utah-design-system/src/components/LayerSelector.utilities.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ export function getHappyPathBasemapProperties(
139139
],
140140
};
141141
}
142+
case 'High Contrast': {
143+
return {
144+
portalItem: {
145+
id: '2ce710cbb88f4981bb517c255f638ff4',
146+
},
147+
};
148+
}
142149
default: {
143150
throw new Error(
144151
`layer-selector::The basemap token '${token}' was not found. Please use one of the supported tokens (${Object.values(basemapTokens).join(', ')}) or pass in a Basemap object.`,

0 commit comments

Comments
 (0)