Skip to content

Commit

Permalink
fix(ui): Webview 에서 Button 호버 효과 대응
Browse files Browse the repository at this point in the history
  • Loading branch information
eungyeole committed Jun 2, 2022
1 parent 0a7e33e commit 8499c4d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/ui/src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const ButtonElement = styled.button<ButtonElementProps>`
display: flex;
align-items: center;
border: none;
outline: none;
cursor: ${(props) => props.cursor};
background: ${(props) => props.theme.colors[props.background]};
padding: ${(props) => `${props.paddingVertical}px ${props.paddingHorizontal}px`};
Expand All @@ -42,8 +43,13 @@ export const ButtonElement = styled.button<ButtonElementProps>`
${(props) => props.fullWidth && full()}
${(props) => props.fillStyle === 'link' && link(props)}
&:hover, &:active {
@media(hover: hover) {
&:hover {
background: ${(props) => props.theme.colors[props.activeBackground]};
}
}
-webkit-tap-highlight-color: transparent;
&:active {
background: ${(props) => props.theme.colors[props.activeBackground]};
}
Expand Down

0 comments on commit 8499c4d

Please sign in to comment.