Skip to content

Commit

Permalink
fix: use <button> tag for buttons (#7797)
Browse files Browse the repository at this point in the history
## What does this PR do?
This PR updates div with button tag for buttons

Fixes #7577 

![Screenshot 2024-10-17
210955](https://github.com/user-attachments/assets/54a0c0e9-93ed-4730-a738-bf486f1f58c8)
  • Loading branch information
Pk9697 authored Oct 21, 2024
1 parent 784770d commit 28c99cb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ type StyledDropdownButtonProps = {
isActive?: boolean;
};

export const StyledHeaderDropdownButton = styled.div<StyledDropdownButtonProps>`
export const StyledHeaderDropdownButton = styled.button<StyledDropdownButtonProps>`
font-family: inherit;
align-items: center;
background: ${({ theme }) => theme.background.primary};
border: none;
border-radius: ${({ theme }) => theme.border.radius.sm};
color: ${({ isActive, theme, color }) =>
color ?? (isActive ? theme.color.blue : theme.font.color.secondary)};
Expand Down

0 comments on commit 28c99cb

Please sign in to comment.