Skip to content

Commit df97eb1

Browse files
authored
fix(autofix): Make cursor pointer on clickable items (#89961)
On items where you can click to trigger the popup, make the cursor a pointer and add a subtle tooltip underline to make it more obvious that you can click.
1 parent f0f1974 commit df97eb1

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

static/app/components/events/autofix/autofixHighlightWrapper.tsx

+18-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React, {useRef} from 'react';
2+
import {css} from '@emotion/react';
3+
import styled from '@emotion/styled';
24
import {AnimatePresence} from 'framer-motion';
35

46
import AutofixHighlightPopup from 'sentry/components/events/autofix/autofixHighlightPopup';
@@ -34,9 +36,9 @@ export function AutofixHighlightWrapper({
3436

3537
return (
3638
<React.Fragment>
37-
<div ref={containerRef} className={className}>
39+
<Wrapper ref={containerRef} className={className} isSelected={!!selection}>
3840
{children}
39-
</div>
41+
</Wrapper>
4042

4143
<AnimatePresence>
4244
{selection && (
@@ -55,3 +57,17 @@ export function AutofixHighlightWrapper({
5557
</React.Fragment>
5658
);
5759
}
60+
61+
const Wrapper = styled('div')<{isSelected: boolean}>`
62+
&:hover {
63+
${p =>
64+
!p.isSelected &&
65+
css`
66+
cursor: pointer;
67+
68+
* {
69+
${p.theme.tooltipUnderline('gray200')};
70+
}
71+
`};
72+
}
73+
`;

0 commit comments

Comments
 (0)