+
diff --git a/src/core/features/course/components/module-navigation/module-navigation.scss b/src/core/features/course/components/module-navigation/module-navigation.scss
index 4b4eb2a8c..6b8ce25f6 100644
--- a/src/core/features/course/components/module-navigation/module-navigation.scss
+++ b/src/core/features/course/components/module-navigation/module-navigation.scss
@@ -3,7 +3,7 @@
:host {
--height: var(--core-navigation-max-height);
--background: var(--core-navigation-background);
- --button-vertical-margin: 2px;
+ --button-color: var(--gray-700);
height: var(--height);
width: 100%;
@@ -16,18 +16,42 @@
--loading-inline-min-height: var(--height);
}
- ion-button,
- ::ng-deep ion-button {
- margin-top: var(--button-vertical-margin);
- margin-bottom: var(--button-vertical-margin);
- }
-
&.empty {
display: none;
}
+
+ .core-course-module-navigation-arrow {
+ ion-button {
+ margin: 0;
+ --border-radius: 0;
+ width: 100%;
+ text-transform: none;
+ font-size: 12px;
+ font-weight: normal;
+ --color: var(--button-color);
+
+ .button-text {
+ width:100%;
+ }
+
+ ion-icon {
+ font-size: 12px;
+ }
+ }
+ .core-course-previous-module {
+ text-align: start;
+ }
+ .core-course-next-module {
+ text-align: end;
+ }
+ }
}
:host-context(core-course-format.core-course-format-singleactivity) {
opacity: 0 !important;
height: 0 !important;
}
+
+:host-context(body.dark) {
+ --button-color: var(--gray-100);
+}
diff --git a/src/core/features/course/components/module-navigation/module-navigation.ts b/src/core/features/course/components/module-navigation/module-navigation.ts
index 63211dbc2..cf1327ebd 100644
--- a/src/core/features/course/components/module-navigation/module-navigation.ts
+++ b/src/core/features/course/components/module-navigation/module-navigation.ts
@@ -215,7 +215,7 @@ export class CoreCourseModuleNavigationComponent implements OnInit, OnDestroy {
if (!module) {
// It seems the module was hidden. Show a message.
CoreDomUtils.instance.showErrorModal(
- next ? 'core.course.gotonextactivitynotfound' : 'core.course.gotopreviousactivitynotfound',
+ next ? 'core.course.nextactivitynotfound' : 'core.course.previousactivitynotfound',
true,
);
diff --git a/src/core/features/course/lang.json b/src/core/features/course/lang.json
index 1103a9902..8195622c0 100644
--- a/src/core/features/course/lang.json
+++ b/src/core/features/course/lang.json
@@ -20,11 +20,11 @@
"confirmdownload": "You are about to download {{size}}.{{availableSpace}} Are you sure you want to continue?",
"confirmdownloadunknownsize": "It was not possible to calculate the size of the download.{{availableSpace}} Are you sure you want to continue?",
"confirmdownloadzerosize": "You are about to start downloading.{{availableSpace}} Are you sure you want to continue?",
- "confirmpartialdownloadsize": "You are about to download at least {{size}}.{{availableSpace}} Are you sure you want to continue?",
"confirmlimiteddownload": "You are not currently connected to Wi-Fi. ",
- "courseindex": "Course index",
+ "confirmpartialdownloadsize": "You are about to download at least {{size}}.{{availableSpace}} Are you sure you want to continue?",
"couldnotloadsectioncontent": "Could not load the section content. Please try again later.",
"couldnotloadsections": "Could not load the sections. Please try again later.",
+ "courseindex": "Course index",
"coursesummary": "Course summary",
"done": "Done",
"downloadcourse": "Download course",
@@ -35,20 +35,20 @@
"errordownloadingsection": "Error downloading section.",
"errorgetmodule": "Error getting activity data.",
"failed": "Failed",
- "gotonextactivity": "Go to next activity",
- "gotonextactivitynotfound": "Next activity not found. It's possible that it has been hidden or deleted.",
- "gotopreviousactivity": "Go to previous activity",
- "gotopreviousactivitynotfound": "Previous activity not found. It's possible that it has been hidden or deleted.",
"hiddenfromstudents": "Hidden from students",
"hiddenoncoursepage": "Available but not shown on course page",
"highlighted": "Highlighted",
- "insufficientavailablespace": "You are trying to download {{size}}. This will leave your device with insufficient space to operate normally. Please clear some storage space first.",
"insufficientavailablequota": "Your device could not allocate space to save this download. It may be reserving space for app and system updates. Please clear some storage space first.",
+ "insufficientavailablespace": "You are trying to download {{size}}. This will leave your device with insufficient space to operate normally. Please clear some storage space first.",
"lastaccessedactivity": "Last accessed activity",
"manualcompletionnotsynced": "Manual completion not synchronised.",
"modulenotfound": "Resource or activity not found, please make sure you're online and it's still available.",
+ "nextactivity": "Next activity",
+ "nextactivitynotfound": "Next activity not found. It's possible that it has been hidden or deleted.",
"nocontentavailable": "No content available at the moment.",
"overriddennotice": "Your final grade from this activity was manually adjusted.",
+ "previousactivity": "Previous activity",
+ "previousactivitynotfound": "Previous activity not found. It's possible that it has been hidden or deleted.",
"refreshcourse": "Refresh course",
"section": "Section",
"startdate": "Course start date",