Skip to content

Commit 23997fd

Browse files
authored
fix: dark styles (#2651)
1 parent 07a4b22 commit 23997fd

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

src/components/CopyPageButton/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,17 @@ const CopyDropdownButton: React.FC = () => {
110110
}, [sourceUrl, handleCopy]);
111111
const renderButtonContent = useMemo(
112112
() => (
113-
<Flex align="center" gap={6}>
113+
<Flex className={styles.buttonText} align="center" gap={6}>
114114
{loading ? (
115115
<Spin size="small" />
116116
) : isCopied ? (
117117
<CopiedSvg width={16} height={16} />
118118
) : (
119119
<CopySvg width={16} height={16} />
120120
)}
121-
<span>{loading ? $t("Copying...") : $t("Copy Page")}</span>
121+
<span className={styles.buttonText}>
122+
{loading ? $t("Copying...") : $t("Copy Page")}
123+
</span>
122124
</Flex>
123125
),
124126
[loading, isCopied]
@@ -129,7 +131,7 @@ const CopyDropdownButton: React.FC = () => {
129131
onClick={() => handleCopy(sourceUrl)}
130132
menu={menu}
131133
placement="bottomRight"
132-
icon={<DownArrow width={18} height={18} />}
134+
icon={<DownArrow className={styles.svg} width={18} height={18} />}
133135
className={styles.buttonCainter}
134136
trigger={["click"]}
135137
>

src/components/CopyPageButton/styles.module.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,17 @@
1717
}
1818
}
1919
}
20+
21+
.buttonText {
22+
svg > path {
23+
fill: var(--color-text-0) !important;
24+
}
25+
span {
26+
color: var(--color-text-1);
27+
}
28+
}
29+
.svg {
30+
path {
31+
fill: var(--color-text-0) !important;
32+
}
33+
}

src/css/custom.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,13 @@ textarea {
372372
display: flex;
373373
width: 100%;
374374
}
375+
376+
.ant-dropdown .ant-dropdown-menu {
377+
background-color: var(--color-bg-1);
378+
.ant-dropdown-menu-item {
379+
color: var(--color-text-1);
380+
&:hover {
381+
background-color: var(--color-fill-1);
382+
}
383+
}
384+
}

0 commit comments

Comments
 (0)