chore: improve Modal / Slideover preset

This commit is contained in:
Benjamin Canac
2022-10-09 21:35:53 +02:00
parent d29377f614
commit 7da11ccec0
3 changed files with 14 additions and 10 deletions

View File

@@ -250,7 +250,8 @@ export default (variantColors: string[]) => {
}
const modal = {
wrapper: 'fixed inset-0 overflow-y-auto',
wrapper: 'relative z-50',
inner: 'fixed inset-0 overflow-y-auto',
container: 'flex min-h-full items-end sm:items-center justify-center p-4 sm:p-0 text-center',
base: 'relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:my-8 sm:align-middle w-full',
background: 'u-bg-white',
@@ -422,6 +423,7 @@ export default (variantColors: string[]) => {
}
const slideover = {
wrapper: 'fixed inset-0 flex z-40',
overlay: {
background: 'bg-gray-500/75 dark:bg-gray-600/75',
transition: {