Fixed Attribution Text on Dark Mode

This commit is contained in:
Lucas Oliveira 2023-05-30 15:42:45 -03:00
commit 919ae5f325
2 changed files with 2 additions and 0 deletions

View file

@ -345,6 +345,7 @@ export default function FlowPage({ flow }: { flow: FlowType }) {
panOnDrag={!disableCopyPaste}
zoomOnDoubleClick={!disableCopyPaste}
selectNodesOnDrag={false}
className="theme-attribution"
>
<Background className="dark:bg-gray-900" />
<Controls className="[&>button]:text-black [&>button]:dark:bg-gray-800 hover:[&>button]:dark:bg-gray-700 [&>button]:dark:text-gray-400 [&>button]:dark:fill-gray-400 [&>button]:dark:border-gray-600"></Controls>

View file

@ -87,6 +87,7 @@ module.exports = {
},
".dark .theme-attribution .react-flow__attribution": {
backgroundColor: "rgba(255, 255, 255, 0.2)",
padding: "0px 5px",
},
".dark .theme-attribution .react-flow__attribution a": {
color: "black",