Skip to content

Commit

Permalink
Remove theme variables from AlertBar
Browse files Browse the repository at this point in the history
  • Loading branch information
isacoder committed Mar 27, 2024
1 parent 75d1764 commit ca82786
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/ui-lib/src/Alerts/atom/AlertBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled, { css } from 'styled-components';
import Icon, {IconWrapper} from '../../Icons/Icon';
import { AlertType } from '..';
import { resetButtonStyles } from '../../common/index';
import { fontFamily } from '../../themes/common';

const IconButton = styled.button<{selected?: boolean}>`
${resetButtonStyles};
Expand Down Expand Up @@ -34,13 +35,20 @@ export const AlertWrapper = styled.div<{type: AlertType}>`
padding: 0 14px;
font-family: ${({ theme }) => theme.fontFamily.ui };
${({type, theme}) => theme.styles.feedbackBar[type] };
${({theme}) => theme.typography.feedbackBar.message };
font-family: ${fontFamily.ui};
${({type}) => `background-color: var(--${type})` };
text-align: left;
font-style: italic;
font-size: 14px;
font-weight: 500;
line-height: 20px;
text-decoration: none;
color: var(--white-1);
${IconWrapper} {
[stroke]{
stroke: ${({theme}) => theme.colors.pureBase};
stroke: var(--white-1);
}
}
`;
Expand Down

0 comments on commit ca82786

Please sign in to comment.