Skip to content

Commit

Permalink
fix(Button): active button focus outline
Browse files Browse the repository at this point in the history
bug fix: active button focus issue resolved

removed !active flag from line 167.

bug fix: "Active" button not getting focused state
  • Loading branch information
afzalzbr authored and arturbien committed Apr 24, 2023
1 parent 8d8a376 commit 871d533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const StyledButton = styled.button<StyledButtonProps>`
}
&:focus:after,
&:active:after {
${!active && !disabled && focusOutline}
${!disabled && focusOutline}
outline-offset: -8px;
}
&:active:focus:after,
Expand Down

0 comments on commit 871d533

Please sign in to comment.