Skip to content

Commit 458efc7

Browse files
authored
[6.x] Remove global header z index (#13314)
1 parent a3d9194 commit 458efc7

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

resources/css/elements/base.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616

1717
--z-index-below: -1;
1818
--z-index-above: 1;
19-
--z-index-global-header: 2;
20-
--z-index-portal: 3;
21-
--z-index-draggable: 4;
22-
--z-index-modal: 5;
23-
--z-index-max: 6;
19+
--z-index-portal: 2;
20+
--z-index-draggable: 3;
21+
--z-index-modal: 4;
22+
--z-index-max: 5;
2423

2524
/* Used for entry animations */
2625
--starting-style-transition-duration: 0.125s;

resources/js/components/fieldtypes/markdown/MarkdownFieldtype.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
:is-fullscreen="false"
5454
@toggle-dark-mode="toggleDarkMode"
5555
@button-click="handleButtonClick"
56-
class="sticky z-(--z-index-global-header) -top-2 mb-2 [&~*]:-mt-2"
56+
class="sticky z-(--z-index-above) -top-2 mb-2 [&~*]:-mt-2"
5757
/>
5858

5959
<div class="drag-notification" v-show="dragging">
@@ -96,7 +96,7 @@
9696
<!-- Hidden input for label association -->
9797
<input v-if="id" :id="id" type="text" class="sr-only" @focus="focusCodeMirror" tabindex="-1" />
9898

99-
<footer class="flex items-center justify-between bg-gray-50 dark:bg-gray-900 rounded-b-[calc(var(--radius-lg)-1px)] border-t border-gray-300 dark:border-white/10 p-1 text-sm w-full" :class="{ 'absolute inset-x-0 bottom-0 rounded-none z-(--z-index-global-header)': fullScreenMode }">
99+
<footer class="flex items-center justify-between bg-gray-50 dark:bg-gray-900 rounded-b-[calc(var(--radius-lg)-1px)] border-t border-gray-300 dark:border-white/10 p-1 text-sm w-full" :class="{ 'absolute inset-x-0 bottom-0 rounded-none z-(--z-index-above)': fullScreenMode }">
100100
<div class="markdown-cheatsheet-helper">
101101
<Button
102102
icon="markdown"

resources/js/components/global-header/Header.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import UserDropdown from './UserDropdown.vue';
88
</script>
99

1010
<template>
11-
<header class="h-14 bg-global-header-bg flex justify-between space-x-2 items-center text-white px-2 lg:px-4 fixed overflow-x-auto top-0 inset-x-0 z-(--z-index-global-header)">
12-
<a class="c-skip-link z-(--z-index-global-header) px-4 py-2 bg-blue-800 text-sm top-2.5 left-2.25 fixed opacity-0 -translate-y-24 focus:translate-y-0 focus:opacity-100 rounded-md" href="#main">
11+
<header class="h-14 bg-global-header-bg flex justify-between space-x-2 items-center text-white px-2 lg:px-4 fixed overflow-x-auto top-0 inset-x-0 z-(--z-index-above)">
12+
<a class="c-skip-link z-(--z-index-above) px-4 py-2 bg-blue-800 text-sm top-2.5 left-2.25 fixed opacity-0 -translate-y-24 focus:translate-y-0 focus:opacity-100 rounded-md" href="#main">
1313
{{ __('Skip to sidebar') }}
1414
</a>
15-
<a class="c-skip-link z-(--z-index-global-header) px-4 py-2 bg-blue-800 text-sm top-2.5 left-2.25 fixed opacity-0 -translate-y-24 focus:translate-y-0 focus:opacity-100 rounded-md" href="#main-content">
15+
<a class="c-skip-link z-(--z-index-above) px-4 py-2 bg-blue-800 text-sm top-2.5 left-2.25 fixed opacity-0 -translate-y-24 focus:translate-y-0 focus:opacity-100 rounded-md" href="#main-content">
1616
{{ __('Skip to content') }}
1717
</a>
1818
<div class="dark flex items-center gap-2 text-[0.8125rem] text-white/85 w-full">

0 commit comments

Comments
 (0)