Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jedgar1mx committed Mar 8, 2024
1 parent 137760f commit 88ec05f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/assets/js/main.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/components/organisms/Map/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export default class Map extends HTMLElement {

// Check for custom center point
let center = this.getAttribute('data-center');
center !== undefined ? (center = center.split(',')) : 0;
center !== null ? (center = center.split(',')) : 0;
const zoom = this.getAttribute('data-zoom');

this.map = new maplibregl.Map({
container: mapContainer,
style: mapStyle,
center: center !== undefined ? [center[0], center[1]] : [-83.1, 42.36],
zoom: zoom !== undefined ? zoom : 9,
center: center !== null ? [center[0], center[1]] : [-83.1, 42.36],
zoom: zoom !== null ? zoom : 9,
});
}

Expand Down
13 changes: 13 additions & 0 deletions src/stories/button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,19 @@ Icon.args = {
iconOrder: 'left',
};

export const IconCenterSquare = Template.bind({});
IconCenterSquare.args = {
primary: true,
label: '',
size: 'lg',
backgroundColor: 'primary',
icon: 'house',
iconSize: 'medium',
shape: 'square',
ariaLabel: 'Home',
extraClasses: 'icon-center',
};

export const Close = Template.bind({});
Close.args = {
primary: true,
Expand Down
1 change: 1 addition & 0 deletions src/stories/map.stories.js

Large diffs are not rendered by default.

0 comments on commit 88ec05f

Please sign in to comment.