Skip to content

Commit

Permalink
fix: 调整暗夜模式字体颜色
Browse files Browse the repository at this point in the history
  • Loading branch information
syb01094648 committed Nov 17, 2023
1 parent 2e27ab7 commit 6b294a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export function OfficialLayerControl() {
alt=""
className={styles.amapInfoItemImage}
/>
<div style={{ marginTop: 0 }}>{item.title}</div>
<div className={styles.amapInfoItemTitle} style={{ marginTop: 0 }}>{item.title}</div>
</div>
);
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { theme } from 'antd';
const useStyle = () => {
const { useToken } = theme;
const { token } = useToken();
const { colorBgElevated, colorBgContainer } = token;
const { colorBgElevated, colorBgContainer, colorText } = token;
return {
mapTab: css`
background-color: ${colorBgElevated};
Expand Down Expand Up @@ -64,6 +64,9 @@ const useStyle = () => {
}
}
`,
amapInfoItemTitle: css`
color: ${colorText};
`,
itemBorder: css`
border: 2px solid ${colorBgContainer};
`,
Expand Down

0 comments on commit 6b294a4

Please sign in to comment.