Skip to content

Commit

Permalink
feat(components): set tertiary accent as default with right colorin M…
Browse files Browse the repository at this point in the history
…apMenuDialog.CloseButton
  • Loading branch information
ivangabriele committed Apr 30, 2024
1 parent b87aeaa commit 884caf1
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions src/components/MapMenuDialog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IconButton } from '@elements/IconButton'
import styled from 'styled-components'

import { IconButton } from '../../elements/IconButton'
import { Accent } from '../../constants'

const Container = styled.div`
background-color: ${p => p.theme.color.white};
Expand Down Expand Up @@ -43,8 +44,26 @@ const VisibilityButton = styled(IconButton as any)`
background-color: ${p => p.theme.color.gainsboro};
`

const CloseButton = styled(IconButton as any)`
color: white;
const CloseButton = styled(IconButton as any).attrs(props => ({
accent: Accent.TERTIARY,
Icon: props.Icon ?? 'Close'
}))`
color: ${p => p.theme.color.white};
&:hover,
&._hover {
color: ${p => p.theme.color.white};
}
&:active,
&._active {
color: ${p => p.theme.color.white};
}
&:disabled,
&._disabled {
color: ${p => p.theme.color.white};
}
`

const Footer = styled.div`
Expand Down

0 comments on commit 884caf1

Please sign in to comment.