Skip to content

Commit 87478b0

Browse files
fix: dark theme text color change in empty state component
Signed-off-by: @nishad.shirsat <[email protected]>
1 parent 40c14bf commit 87478b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/EmptyListComponent/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactElement } from "react";
1+
import type { ReactElement } from "react";
22

33
export const EmptyListMessage = ({ message, description, buttonContent, svgComponent, onClick }
44
: {
@@ -11,12 +11,12 @@ export const EmptyListMessage = ({ message, description, buttonContent, svgCompo
1111
}) => {
1212
return (
1313
<div className='flex mt-20 justify-start items-center flex-col'>
14-
<p className='text-2xl font-bold mb-4'>{message}</p>
15-
<p className='text-lg mb-4'>{description}</p>
14+
<p className='text-2xl font-bold mb-4 text-gray-900 dark:text-white'>{message}</p>
15+
<p className='text-lg mb-4 text-gray-900 dark:text-white'>{description}</p>
1616
{
1717
buttonContent
1818
&& <button
19-
className='group flex h-min p-3 mt-10 items-center justify-center p-0.5 font-medium focus:z-10 border border-transparent enabled:hover:bg-cyan-800 dark:enabled:hover:bg-cyan-700 text-base font- text-center text-white bg-primary-700 rounded-lg hover:bg-accent-00 focus:ring-4 focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800&quot;'
19+
className='group flex h-min p-3 mt-5 items-center justify-center p-0.5 font-medium focus:z-10 border border-transparent enabled:hover:bg-cyan-800 dark:enabled:hover:bg-cyan-700 text-base font- text-center text-white bg-primary-700 rounded-lg hover:bg-accent-00 focus:ring-4 focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800&quot;'
2020
onClick={onClick}>
2121
{svgComponent}
2222
<span className="ml-2">{buttonContent}</span>

0 commit comments

Comments
 (0)