Skip to content

Commit

Permalink
Banner updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejoYarce committed Dec 5, 2024
1 parent 699e0ab commit fa7ec02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/components/Banner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ const Banner = ({
}

return (
<StyledBanner isButtonRight={isButtonRight} size={size}>
<StyledBanner
isButtonRight={isButtonRight}
size={size}
aria-roledescription='Note'
>
<div>
<BannerHeader>
{icon}
Expand Down
9 changes: 7 additions & 2 deletions src/components/Banner/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export const DefaultBanner = styled.div<{
padding: ${({ size }) =>
size === 'small' ? '8px 8px 12px 8px' : '8px 12px 12px 12px'};
display: flex;
align-items: flex-start;
align-items: ${({ isButtonRight }) =>
isButtonRight ? 'center' : 'flex-start'};
justify-content: ${({ isButtonRight }) =>
isButtonRight ? 'space-between' : 'flex-start'};
flex-direction: ${({ isButtonRight }) => (isButtonRight ? 'row' : 'column')};
Expand All @@ -24,8 +25,12 @@ export const DefaultBanner = styled.div<{

export const BannerHeader = styled.div`
display: flex;
align-items: center;
align-items: flex-start;
gap: 8px;
svg {
margin-top: 6px;
}
`

export const BannerTitle = styled.p<{ size: string }>`
Expand Down

0 comments on commit fa7ec02

Please sign in to comment.