Skip to content

Commit 9ec69a8

Browse files
committed
Disable pointer events on highlight InfoMessage
1 parent 39dfafa commit 9ec69a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/content/highlights/components/EditCard.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ const EditCard = React.forwardRef<HTMLElement, EditCardProps>((props, ref) => {
5757
return <LoginOrEdit props={props} fref={ref} />;
5858
});
5959

60+
const InfoMessage = styled.i`
61+
pointer-events: none;
62+
`;
63+
6064
function LoginOrEdit({
6165
props,
6266
fref,
@@ -87,7 +91,7 @@ function LoginOrEdit({
8791
<ActiveEditCard props={props} element={element} />
8892
</form>
8993
) :
90-
<i>Press Enter or double-click highlight to edit highlight</i>
94+
<InfoMessage>Press Enter or double-click highlight to edit highlight</InfoMessage>
9195
}
9296
</HiddenOnMobile>
9397
) : <LoginConfirmation onBlur={props.onBlur} />

0 commit comments

Comments
 (0)