Skip to content

Commit

Permalink
Merge pull request #11846 from richard-cox/fix-wm-loading
Browse files Browse the repository at this point in the history
Ensure loading indicator doesn't show outside it's context
  • Loading branch information
richard-cox authored Sep 24, 2024
2 parents 626d7e4 + 62619c2 commit 17623b9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
16 changes: 12 additions & 4 deletions shell/assets/styles/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,20 @@ $z-indexes: (
overContent: 2,
hoverOverContent: 3,

mainHeader: 12,

tableGroup: 10,
fixedTableHeader: 11,

// ---- Boundary for central content (in `<main>`)

// This covers both relative and content modes of the loading indicator
loading: 12,

// Users can click on shell in header and show shell even with most loading indicators showing,
// so add it above them
windowsManager: 13,

mainHeader: 14,

modalOverlay: 20,
modalContent: 21,

Expand All @@ -38,8 +47,7 @@ $z-indexes: (
dropdownOverlay: 40,
dropdownContent: 41,

loadingOverlay: 50,
loadingContent: 51
loadingMain: 51
);

// Usage Example:
Expand Down
2 changes: 1 addition & 1 deletion shell/assets/styles/global/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ HEADER {
.wm {
grid-area: wm;
overflow-y: hidden;
z-index: 1;
z-index: z-index('windowsManager');
}

.localeSelector {
Expand Down
5 changes: 4 additions & 1 deletion shell/components/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ export default {
left: 0;
right: 0;
text-align: center;
z-index: z-index('loadingContent');
// Covers both default `content` mode, an often used `relative` mode and any other value of mode
z-index: z-index('loading');
&-main-mode {
top: var(--header-height);
z-index: z-index('loadingMain');
}
&-content-mode {
Expand Down

0 comments on commit 17623b9

Please sign in to comment.