diff --git a/apps/dashboard/src/app.css b/apps/dashboard/src/app.css index eed3ee62..d01b8942 100644 --- a/apps/dashboard/src/app.css +++ b/apps/dashboard/src/app.css @@ -8,6 +8,28 @@ @custom-variant dark (&:where(.dark, .dark *)); +/** + * Shared z-index scale, mirrored from `packages/ui/src/index.css`. + * + * Dashboard code has its own (unprefixed) Tailwind pipeline, separate from `@cio/ui`'s + * `ui:`-prefixed one — a `ui:`-prefixed utility only compiles if that exact class string is + * also used somewhere under `packages/ui/src`. So dashboard-only usages (page headers, the + * course sidebar, dropdowns/selects that need to escape a sticky header or a modal) must use + * these unprefixed names instead. Keep the two scales numerically in sync; see + * `packages/ui/README.md` for the full write-up of each layer. + */ +@utility z-app-bar { + z-index: 100; +} + +@utility z-app-bar-elevated { + z-index: 150; +} + +@utility z-menu-elevated { + z-index: 250; +} + /* Geist variable font — self-hosted */ @font-face { font-family: 'Geist'; diff --git a/apps/dashboard/src/lib/features/cohort/components/cohort-header.svelte b/apps/dashboard/src/lib/features/cohort/components/cohort-header.svelte index dc0a7d09..d0db1033 100644 --- a/apps/dashboard/src/lib/features/cohort/components/cohort-header.svelte +++ b/apps/dashboard/src/lib/features/cohort/components/cohort-header.svelte @@ -5,7 +5,7 @@
diff --git a/apps/dashboard/src/lib/features/course/components/course-header.svelte b/apps/dashboard/src/lib/features/course/components/course-header.svelte index 35150164..18ccd09a 100644 --- a/apps/dashboard/src/lib/features/course/components/course-header.svelte +++ b/apps/dashboard/src/lib/features/course/components/course-header.svelte @@ -58,7 +58,7 @@
diff --git a/apps/dashboard/src/lib/features/course/components/exercise/mark-exercise-modal.svelte b/apps/dashboard/src/lib/features/course/components/exercise/mark-exercise-modal.svelte index 8e00b28f..6dad6499 100644 --- a/apps/dashboard/src/lib/features/course/components/exercise/mark-exercise-modal.svelte +++ b/apps/dashboard/src/lib/features/course/components/exercise/mark-exercise-modal.svelte @@ -296,7 +296,7 @@ > - + { @@ -366,7 +366,7 @@ {status.text} - + {#each SELECTABLE_STATUS as statusOption} {statusOption.text} diff --git a/apps/dashboard/src/lib/features/course/components/sidebar/course-sidebar.svelte b/apps/dashboard/src/lib/features/course/components/sidebar/course-sidebar.svelte index 3c990ce8..f0e1533a 100644 --- a/apps/dashboard/src/lib/features/course/components/sidebar/course-sidebar.svelte +++ b/apps/dashboard/src/lib/features/course/components/sidebar/course-sidebar.svelte @@ -112,7 +112,7 @@ {#if !isOrgLoaded} {:else} - + diff --git a/apps/dashboard/src/lib/features/course/pages/exercise.svelte b/apps/dashboard/src/lib/features/course/pages/exercise.svelte index ffa93264..4ebe743c 100644 --- a/apps/dashboard/src/lib/features/course/pages/exercise.svelte +++ b/apps/dashboard/src/lib/features/course/pages/exercise.svelte @@ -405,7 +405,7 @@ } - + {exerciseDisplayTitle} @@ -451,7 +451,7 @@ {/snippet} - + {$t('course.navItem.lessons.exercises.all_exercises.add_section')} @@ -490,7 +490,7 @@ {/snippet} - + {#if hasSections($questionnaire.sections)} (reorderQuestions = !reorderQuestions)}> {reorderQuestions diff --git a/apps/dashboard/src/lib/features/side-panel/side-panel-rail.svelte b/apps/dashboard/src/lib/features/side-panel/side-panel-rail.svelte index 1afcd227..922cf0d7 100644 --- a/apps/dashboard/src/lib/features/side-panel/side-panel-rail.svelte +++ b/apps/dashboard/src/lib/features/side-panel/side-panel-rail.svelte @@ -148,7 +148,7 @@