-
Notifications
You must be signed in to change notification settings - Fork 9
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: Allow RoutePropertiesCard to be open to "variants" or "stops" by default #2611
Conversation
6b171e7
to
d12f582
Compare
0e2db63
to
11d6fc5
Compare
Coverage of commit
|
d12f582
to
47d3d4b
Compare
e222187
to
87575e5
Compare
Coverage of commit
|
Coverage of commit
|
export const WithVariantsOpenedByDefault: Story = { | ||
args: { | ||
defaultOpened: "variants", | ||
}, | ||
} | ||
export const WithStopsOpenedByDefault: Story = { | ||
args: { | ||
defaultOpened: "stops", | ||
}, | ||
} |
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.
I'm on the fence about including these two stories, because these stories don't really surface a UI variation of the card, but rather serve as a kind of test that the parameter of "default openness" is getting correctly applied. If we ever had a regression in that "openness" variable, the below tests would catch it.
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.
The reason I thought it was a good idea is that if anything ever changes about how the two "open" states look, Chromatic wouldn't catch it on the other stories where they default to closed.
I'm not attached to doing this - it's kind of small potatoes stakes - but that's what I was thinking when I added these.
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.
Oh I seeeeeee, I see. Ok yeah, I was very easily persuaded. It makes sense to want some record of the look of those open states.
47d3d4b
to
d75281d
Compare
5f7ae18
to
f9074b3
Compare
87575e5
to
fafcc08
Compare
Coverage of commit
|
fafcc08
to
362869c
Compare
32efbe9
to
648cb8d
Compare
699aed1
to
58471e1
Compare
58471e1
to
7e93587
Compare
Coverage of commit
|
Coverage of commit
|
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.
👍
Asana Ticket: https://app.asana.com/0/0/1207363543546275/f