-
Notifications
You must be signed in to change notification settings - Fork 54
Change display of program cards in group3 & update stories to include 4 cards #3184
Conversation
@@ -3,7 +3,11 @@ | |||
<!-- prettier-ignore --> | |||
| Version | Description | | |||
|---------|-------------| | |||
<<<<<<< HEAD |
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.
Left this after conflict resolving 🙈
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.
@@ -11,7 +11,7 @@ export const sentenceCase = text => | |||
.charAt(0) | |||
.toUpperCase() + text.substring(1); | |||
|
|||
export const stateTypes = ['onDemand', 'live', 'next']; | |||
export const stateTypes = ['live', 'onDemand', 'onDemand', 'next']; |
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.
Since now we have two onDemand
s here, in ProgramCard
test should render correctly for ${state}
where we go through each state type, we will have two identical snapshots for 'onDemand'. Can you please fix that to avoid repetition?
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.
Nice catch, fixed now
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.
Thank you for the changes, looks good 👍
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.
LGTM
Resolves #3134
Overall change:
Changes the grid layout of the component in group 3 from having the 4th card overflow to another row to having a 2x2 layout instead. Also updated stories to have 4 cards rather than 3.
Originally we were to hide a card so the layout would be:
Now UX have agreed on this layout so we don't hide any information just on one breakpoint:
Code changes:
group3
ofprogramCardGridProps
from 2 to 3 in order to make 2x2 layout.onDemand
twice tostateTypes
to add another card easily to stories and changed the order to be correct.