Skip to content

Commit

Permalink
style: Alert background could be linear-gradient (ant-design#46188)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Nov 30, 2023
1 parent 1235d8f commit 6d963b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .dumi/theme/slots/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,14 @@ const Header: React.FC = () => {
</Popover>
)}
{isZhCN && bannerVisible && (
<ConfigProvider theme={{ token: { colorInfoBg: '#ceebf9', colorTextBase: '#000' } }}>
<ConfigProvider
theme={{
token: {
colorInfoBg: 'linear-gradient(90deg, #84fab0, #8fd3f4)',
colorTextBase: '#000',
},
}}
>
<Alert
className={styles.banner}
message={
Expand Down
2 changes: 1 addition & 1 deletion components/alert/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const genAlertTypeStyle = (
token: AlertToken,
alertCls: string,
): CSSObject => ({
backgroundColor: bgColor,
background: bgColor,
border: `${token.lineWidth}px ${token.lineType} ${borderColor}`,
[`${alertCls}-icon`]: {
color: iconColor,
Expand Down

0 comments on commit 6d963b7

Please sign in to comment.