-
Notifications
You must be signed in to change notification settings - Fork 3
Make add to list dialog scrollable #1689
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
Conversation
| const resourceQuery = useLearningResourcesDetail(resourceId) | ||
| const resource = resourceQuery.data | ||
| const listsQuery = useLearningPathsList() | ||
| const listsQuery = useLearningPathsList({ limit: LIST_LIMIT }) |
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.
Showing up to 100 and scrolling isn't a great solution. We should have infinite scroll or something.
This is a remediation to unblock the DLLs.
|
|
||
| const Content = styled.div` | ||
| margin: 28px 28px 40px; | ||
| margin: 28px; |
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.
Previously, in Figma, a couple dialogs had 40px between the content and the dialog footer but most had 28px.
In THE CODE it was determined via Dialog vs FormDialog. Both used 40px margin on the content, but FormDialog also had -12px on the footer for an effective 28px. This is (a) weird, and (b) the negative margin approach did not work well with scrolling overflow. (Which is why it's showing up in this PR).
Confirmed with @steven-hatch we want 28px uniformly across the dialogs.
Here's an example of a noticeable change:
shanbady
left a comment
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.
👍
What are the relevant tickets?
Closes https://github.com/mitodl/hq/issues/5774
Description (What does it do?)
Screenshots (if appropriate):
Change: The AddToListDialog shows more lists and is scrollable (if necessary):
Unchanged: Most other dialogs
How can this be tested?