fix: use <button> tag for buttons (#7797)
## What does this PR do? This PR updates div with button tag for buttons Fixes #7577 
This commit is contained in:
@ -5,9 +5,11 @@ type StyledDropdownButtonProps = {
|
|||||||
isActive?: boolean;
|
isActive?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const StyledHeaderDropdownButton = styled.div<StyledDropdownButtonProps>`
|
export const StyledHeaderDropdownButton = styled.button<StyledDropdownButtonProps>`
|
||||||
|
font-family: inherit;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: ${({ theme }) => theme.background.primary};
|
background: ${({ theme }) => theme.background.primary};
|
||||||
|
border: none;
|
||||||
border-radius: ${({ theme }) => theme.border.radius.sm};
|
border-radius: ${({ theme }) => theme.border.radius.sm};
|
||||||
color: ${({ isActive, theme, color }) =>
|
color: ${({ isActive, theme, color }) =>
|
||||||
color ?? (isActive ? theme.color.blue : theme.font.color.secondary)};
|
color ?? (isActive ? theme.color.blue : theme.font.color.secondary)};
|
||||||
|
|||||||
Reference in New Issue
Block a user