Skip to content
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

Conversation

Rodra
Copy link
Contributor

@Rodra Rodra commented Feb 28, 2025

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.

Screenshot 2025-02-28 at 4 43 03 PM Screenshot 2025-02-28 at 4 23 21 PM Screenshot 2025-02-28 at 4 23 30 PM Screenshot 2025-02-28 at 4 24 06 PM

There is a requirement from support to make sure the bottom of the page previous and next buttons remain

After

Screenshot 2025-03-03 at 3 04 46 PM Screenshot 2025-03-03 at 3 04 55 PM

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.

Screenshot 2025-03-03 at 3 06 57 PM

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.71%. Comparing base (ae04e5b) to head (f3dddfe).
Report is 3 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@Rodra Rodra force-pushed the rodra/update-previous-and-next-unit-navigation-buttons-with-custom-design branch 2 times, most recently from 161602f to 4151c66 Compare March 3, 2025 14:48
@KristinAoki
Copy link
Member

@Rodra the slack discussion link that you posted is to a private thread. Can you give a summary in the description of the discussion?

@@ -47,6 +49,7 @@ export const NextUnitTopNavTriggerSlot : React.FC<Props> = ({
nextLink,
disabled,
buttonText,
isAtTop,
Copy link
Member

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

Copy link
Member

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?

@Rodra Rodra force-pushed the rodra/update-previous-and-next-unit-navigation-buttons-with-custom-design branch from 4151c66 to eba44d5 Compare March 3, 2025 17:46
@Rodra Rodra force-pushed the rodra/update-previous-and-next-unit-navigation-buttons-with-custom-design branch from eba44d5 to f3dddfe Compare March 3, 2025 17:58
@Rodra Rodra merged commit 06e5fb5 into openedx:master Mar 4, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants