-
Notifications
You must be signed in to change notification settings - Fork 742
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
Improved topic cards now show three articles, with new design #6408
Conversation
* Alter the help_topics macro to support showing three articles * Add show more section with sectional line above * Add logic to the product_landing view to return docs and counts
5de6b5b
to
6678459
Compare
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.
Overall, this looks pretty good! I have some suggestions below, and also I'm thinking that the topics grid should collapse to a width of 1 or 2 cards for mobile devices in order to avoid the need for horizontal scrolling (but I'll defer to Josh for that).
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 think this needs two more adjustments:
- I think the topics card grid should be responsive to screen size, so I think we should collapse to 2 columns or 1 column (depending on the device screen size) in order to avoid the need for horizontal scrolling on mobile and other smaller-screen devices.
- It seems to me that we should delete the
Frequent Topics
header, which is redundant with theTopics
header (see image below).
@escattone I spoke with Josh and we are in agreement about simplifying the headers. The scrolling is an issue that I think we have a case for elsewhere - not just for this use case but for other cases that use cards. The idea of stacking the cards makes the horizontal scroll too much, but we definitely could improve the other scrolling options. |
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 good, thanks @smithellis!
02ed05b
to
47ea107
Compare
…a#6408) * Improved topic card now show three top articles * Alter the help_topics macro to support showing three articles * Add show more section with sectional line above * Add logic to the product_landing view to return docs and counts * A utility function builds the topics_context for the cards * Fix card scroll for topic cards on mobile
…a#6408) * Improved topic card now show three top articles * Alter the help_topics macro to support showing three articles * Add show more section with sectional line above * Add logic to the product_landing view to return docs and counts * A utility function builds the topics_context for the cards * Fix card scroll for topic cards on mobile * Topics can only wrap once before being cut off with ellipses
Note - right now this just shows three (the first three) documents in a topic. This should be updated to choose most popular or newest pending discussions with Content.