Compare commits

..

1 Commits

Author SHA1 Message Date
982125a199 Add dark mode in BaseErrorAlert 2023-03-27 13:47:58 +05:30
2 changed files with 15 additions and 14 deletions

View File

@ -1,11 +1,18 @@
<template>
<div class="rounded-md bg-red-50 p-4">
<div
class="
rounded-md
bg-red-50
p-4
dark:border dark:border-red-400 dark:bg-transparent
"
>
<div class="flex">
<div class="shrink-0">
<XCircleIcon class="h-5 w-5 text-red-400" aria-hidden="true" />
<XCircleIcon class="h-5 w-5 text-red-400 dark:text-red-500" aria-hidden="true" />
</div>
<div class="ml-3">
<h3 class="text-sm font-medium text-red-800">
<h3 class="text-sm font-medium text-red-800 dark:text-red-500">
{{ errorTitle }}
</h3>
<div class="mt-2 text-sm text-red-700">

View File

@ -1,8 +1,6 @@
<template>
<div
:class="success || info
? 'bg-white dark:border dark:border-white/10 dark:text-white dark:bg-gray-800/[.80] dark:shadow-glass dark:backdrop-blur-sm'
: 'bg-red-50 dark:bg-red-400/[.70] dark:shadow-glass dark:backdrop-blur-sm'"
:class="success || info ? 'bg-white' : 'bg-red-50'"
class="
max-w-sm
mb-3
@ -50,7 +48,7 @@
</svg>
<svg
v-if="error"
class="w-6 h-6 text-red-400 dark:text-white"
class="w-6 h-6 text-red-400"
fill="currentColor"
viewBox="0 0 24 24"
>
@ -64,9 +62,7 @@
<div class="flex-1 w-0 ml-3 text-left">
<p
:class="`text-sm leading-5 font-medium ${
success || info
? 'text-gray-900 dark:text-white'
: 'text-red-800 dark:text-white'
success || info ? 'text-gray-900' : 'text-red-800'
}`"
>
{{
@ -79,9 +75,7 @@
</p>
<p
:class="`mt-1 text-sm leading-5 ${
success || info
? 'text-gray-500 dark:text-gray-400'
: 'text-red-700 dark:text-red-200'
success || info ? 'text-gray-500' : 'text-red-700'
}`"
>
{{
@ -98,7 +92,7 @@
:class="
success || info
? ' text-gray-400 focus:text-gray-500'
: 'text-red-400 focus:text-red-500 dark:text-red-100'
: 'text-red-400 focus:text-red-500'
"
class="
inline-flex