-
Notifications
You must be signed in to change notification settings - Fork 230
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: Update previous and next unit navigation buttons design #1617
feat: Update previous and next unit navigation buttons design #1617
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1617 +/- ##
==========================================
+ Coverage 84.65% 84.71% +0.05%
==========================================
Files 332 332
Lines 5683 5704 +21
Branches 1359 1404 +45
==========================================
+ Hits 4811 4832 +21
+ Misses 855 853 -2
- Partials 17 19 +2 ☔ View full report in Codecov by Sentry. |
161602f
to
4151c66
Compare
@Rodra the slack discussion link that you posted is to a private thread. Can you give a summary in the description of the discussion? |
src/courseware/course/sequence/sequence-navigation/UnitNavigation.jsx
Outdated
Show resolved
Hide resolved
@@ -47,6 +49,7 @@ export const NextUnitTopNavTriggerSlot : React.FC<Props> = ({ | |||
nextLink, | |||
disabled, | |||
buttonText, | |||
isAtTop, |
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 same change needs to be added to pluginProps
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.
Will you remove courseId
from the props as it is best practice to fetch inside the plugin via useContext
?
4151c66
to
eba44d5
Compare
eba44d5
to
f3dddfe
Compare
Axim Team:
We've received feedback about the placement of these buttons, and we'd like to make the following change on the open edx platform as well: Move the previous and next buttons at the top of the page down (in line with the content header). For this reason, I think it should be OK to make this change within the MFE itself.
Description
The top previous and next buttons should be moved to match the design pictured below and attached.
There is a requirement from support to make sure the bottom of the page previous and next buttons remain
After
Caveat
Since there's an already margin and padding for the unit content the arrow buttons were added within the inside content without affecting that design. The wanted changes locate the buttons as if there was no margin but we are not skipping this default configuration unless is requested.