Skip to content

Commit 5864b6f

Browse files
authored
[6.x] Remove z-index from replicator. I think the z-2 class is unnecessar… (#14108)
* Remove z-index from replicator. I think the `z-2` class is unnecessary, and removing it fixes replicators appearing above sticky Bard toolbars * Remove z-index from the add block button too
1 parent 65aa98f commit 5864b6f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

resources/js/components/fieldtypes/replicator/AddSetButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<template #trigger>
55
<div class="inline-flex relative pt-2" :class="{ 'pt-6': showConnector }">
66
<div v-if="showConnector" class="absolute group-hover:opacity-0 transition-opacity delay-25 duration-125 inset-y-0 h-full left-3.5 border-l-1 border-gray-400 dark:border-gray-600 border-dashed z-0 dark:bg-gray-850" />
7-
<Button v-if="enabled" size="sm" :text="label" icon="plus" class="relative z-2" />
7+
<Button v-if="enabled" size="sm" :text="label" icon="plus" class="relative" />
88
</div>
99
</template>
1010
</set-picker>

resources/js/components/fieldtypes/replicator/Set.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ reveal.use(rootEl, () => emit('expanded'));
128128
<div
129129
layout
130130
data-replicator-set
131-
class="relative z-2 w-full rounded-lg border border-gray-300 text-base dark:border-white/10 bg-white dark:bg-gray-900 dark:inset-shadow-2xs dark:inset-shadow-black shadow-ui-sm dark:[&_[data-ui-switch]]:border-gray-600 dark:[&_[data-ui-switch]]:border-1"
131+
class="relative w-full rounded-lg border border-gray-300 text-base dark:border-white/10 bg-white dark:bg-gray-900 dark:inset-shadow-2xs dark:inset-shadow-black shadow-ui-sm dark:[&_[data-ui-switch]]:border-gray-600 dark:[&_[data-ui-switch]]:border-1"
132132
:class="{
133133
'border-red-500': hasError
134134
}"

0 commit comments

Comments
 (0)