-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(storybook): Add story for location marker icon #2278
Conversation
I'd say this component only really makes sense in a Leaflet map setting - it uses |
assets/stories/skate-components/map/markers/locationDotMarker.stories.tsx
Outdated
Show resolved
Hide resolved
import { LocationMarker } from "../../../../src/components/mapMarkers" | ||
import { inMapDecorator } from "../../../../.storybook/inMapDecorator" | ||
|
||
const location: LocationSearchResult = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: not sure how much luck you've had working through the CI errors you're seeing, but adding import { LocationSearchResult } from "../../../../src/models/locationSearchResult"
will help (and then you just have to add location to the args for the two specific stories).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks kind of ugly
Related: #2278 (comment)
assets/stories/skate-components/map/markers/locationDotMarker.stories.tsx
Outdated
Show resolved
Hide resolved
I agree, I really like having a icon without map story, but I think we may start using IconGallery which would fill the place of having stories for the icon on their own. |
Yeah I guess Kayla and I had sort of conflicting responses to this but upon reading hers I've come around, basically I think it's important to have both for different reasons (and I like the idea of a dedicated icon gallery thingy!). |
Coverage of commit
|
Coverage of commit
|
Coverage of commit
|
1d633eb
to
023043d
Compare
Coverage of commit
|
This is a follow-up to this PR to add a storybook story for the affected icon.
Question: I wasn't able to get the icon to load without being in the map context. It feels like we should have a non-map version of the icon, but I sort of timeboxed the effort to add it. What do you all think?