fix: Fix style for error modal (#11996)

* Fix style for error alert

* Revert test code
This commit is contained in:
Victor Malai
2020-12-15 10:03:53 +02:00
committed by GitHub
parent 7a7da27253
commit 329dcc314e

View File

@@ -59,6 +59,11 @@ const ErrorModal = styled(Modal)<{ level: ErrorLevel }>`
color: ${({ level, theme }) => theme.colors[level].dark2};
overflow-wrap: break-word;
.ant-modal-header {
background-color: ${({ level, theme }) => theme.colors[level].light2};
padding: ${({ theme }) => 4 * theme.gridUnit}px;
}
.icon {
margin-right: ${({ theme }) => 2 * theme.gridUnit}px;
}
@@ -66,7 +71,6 @@ const ErrorModal = styled(Modal)<{ level: ErrorLevel }>`
.header {
display: flex;
align-items: center;
background-color: ${({ level, theme }) => theme.colors[level].light2};
font-size: ${({ theme }) => theme.typography.sizes.l}px;
}
`;