From 95ec41d2e71c5974d521574c71c3906e0a15aae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Ch=C3=A1vez?= Date: Wed, 26 Nov 2025 18:18:41 -0500 Subject: [PATCH] feat: dock buttons to the bottom in import course stepper (#2694) --- .../import-course/index.scss | 19 +++++++ .../stepper/ImportStepperPage.tsx | 52 ++++++++++--------- 2 files changed, 46 insertions(+), 25 deletions(-) diff --git a/src/library-authoring/import-course/index.scss b/src/library-authoring/import-course/index.scss index 74012aea1..cdb000fba 100644 --- a/src/library-authoring/import-course/index.scss +++ b/src/library-authoring/import-course/index.scss @@ -17,3 +17,22 @@ .text-decoration-underline { text-decoration: underline; } + +.import-course-stepper { + .import-container { + // Calculate all the screen size subtracting the height of the header and title and top/bottom margins + min-height: calc(calc(100vh - 60px - 61px) - calc(var(--pgn-spacing-spacer-base) * 6)); + } + + .content-buttons { + width: 100%; + position: sticky; + bottom: 0; + } + + [class*="col-"] { + // To avoid create an empty gray space between the main content and the sidebar + padding-right: 0; + padding-left: 0; + } +} diff --git a/src/library-authoring/import-course/stepper/ImportStepperPage.tsx b/src/library-authoring/import-course/stepper/ImportStepperPage.tsx index 8b182531f..2a844b175 100644 --- a/src/library-authoring/import-course/stepper/ImportStepperPage.tsx +++ b/src/library-authoring/import-course/stepper/ImportStepperPage.tsx @@ -112,7 +112,7 @@ export const ImportStepperPage = () => { } return ( -
+
{libraryData.title} | {process.env.SITE_NAME} @@ -128,7 +128,7 @@ export const ImportStepperPage = () => { size: undefined, }} /> - +
{
- - - - - - - - - -
+
+ + + + + + + + + +
+
{currentStep === 'select-course' ? (