Skip to content

Commit 1dd64f6

Browse files
Apply suggestions from code review
Co-authored-by: Josh Black <[email protected]>
1 parent d248cba commit 1dd64f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/non-interactive-tooltip-trigger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ module.exports = {
8484
nonInteractiveTrigger:
8585
'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',
8686
anchorTagWithoutHref:
87-
'Anchor tags without an href attribute are not be considered interactive, therefore can not be used as a trigger for a tooltip.',
87+
'Anchor tags without an href attribute are not interactive, therefore they cannot be used as a trigger for a tooltip. Please add an href attribute or use an alternative interactive element instead',
8888
hiddenInput:
89-
'Hidden inputs are not be considered interactive, therefore can not be used as a trigger for a tooltip.',
89+
'Hidden inputs are not interactive and cannot be used as a trigger for a tooltip. Please use an alternate input type or use a different interactive element instead',
9090
singleChild: 'The `Tooltip` component expects a single React element as a child.'
9191
}
9292
},

0 commit comments

Comments
 (0)