refactor(Alert): Migrate Alert component to Ant Design V5 (#31168)

Co-authored-by: Diego Pucci <diegopucci.me@gmail.com>
This commit is contained in:
Levis Mbote
2024-12-06 22:26:04 +03:00
committed by GitHub
parent 079e7327a2
commit 79aff6827c
10 changed files with 127 additions and 182 deletions

View File

@@ -20,24 +20,9 @@
import { css, SupersetTheme } from '@superset-ui/core';
export const antdWarningAlertStyles = (theme: SupersetTheme) => css`
border: 1px solid ${theme.colors.warning.light1};
padding: ${theme.gridUnit * 4}px;
margin: ${theme.gridUnit * 4}px 0;
color: ${theme.colors.warning.dark2};
.ant-alert-message {
.antd5-alert-message {
margin: 0;
}
.ant-alert-description {
font-size: ${theme.typography.sizes.s + 1}px;
line-height: ${theme.gridUnit * 4}px;
.ant-alert-icon {
margin-right: ${theme.gridUnit * 2.5}px;
font-size: ${theme.typography.sizes.l + 1}px;
position: relative;
top: ${theme.gridUnit / 4}px;
}
}
`;