Skip to content

Commit

Permalink
Add overlay color
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyHoenderdaal committed Jan 9, 2025
1 parent 62b4b9a commit a559bd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/slideover/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<input @checked($open) id="{{ $id }}" class="peer hidden" v-on:change="toggleScroll($event.target.checked)" type="checkbox">
<label
for="{{ $closeId }}"
class="pointer-events-none fixed inset-0 z-slideover-overlay cursor-pointer bg-black/40 opacity-0 transition peer-checked:pointer-events-auto peer-checked:opacity-100"
class="pointer-events-none fixed inset-0 z-slideover-overlay cursor-pointer bg-overlay opacity-0 transition peer-checked:pointer-events-auto peer-checked:opacity-100"
></label>
@else
<input @checked($open) id="{{ $id }}" class="peer hidden" type="checkbox">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class="relative w-full"
>
<x-rapidez::reactive-base slot-scope="autocompleteScope">
<div
class="z-header-autocomplete-overlay pointer-events-none fixed inset-0 cursor-pointer bg-black/40 opacity-0 transition duration-500"
class="z-header-autocomplete-overlay pointer-events-none fixed inset-0 cursor-pointer bg-overlay opacity-0 transition duration-500"
:class="autocompleteScope.overlay ? 'pointer-events-auto opacity-100 prevent-scroll' : 'opacity-0 pointer-events-none '"
></div>
<x-rapidez::autocomplete.magnifying-glass v-bind:class="{ 'bg-primary text-white': autocompleteScope.overlay }" />
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export default {
DEFAULT: color('--background', colors.slate[100]),
muted: color('--background-muted', colors.slate[50]),
},
overlay: color('--overlay', 'rgba(0, 0, 0, 0.4)'),
},
zIndex: {
'header': '100',
Expand Down

0 comments on commit a559bd8

Please sign in to comment.