File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed
components/CopyPageButton Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments