Skip to content

Commit

Permalink
Remove pointer events for existing or disabled integration tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlisa authored and github-actions committed Jun 4, 2024
1 parent 3984d41 commit 94bc753
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/packages/teleport/src/Integrations/Enroll/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const IntegrationTile = styled(Flex)`
cursor: pointer;
${props => {
const pointerEvents = props.disabled ? 'none' : null;
const pointerEvents = props.disabled || props.$exists ? 'none' : null;
if (props.$exists) {
return { pointerEvents };
}
Expand All @@ -44,6 +44,7 @@ export const IntegrationTile = styled(Flex)`
&:hover {
background-color: ${props.theme.colors.buttons.secondary.hover};
}
pointer-events: ${pointerEvents};
`;
}}
`;
Expand Down

0 comments on commit 94bc753

Please sign in to comment.