Skip to content

Commit 49abff7

Browse files
update the rule message
1 parent 060fbea commit 49abff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module.exports = {
133133
],
134134
messages: {
135135
nonInteractiveTrigger:
136-
'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',
136+
'Tooltips should only be applied to interactive elements that are not disabled. Consider using a `<button>` or equivalent interactive element instead.',
137137
nonInteractiveLink:
138138
'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',
139139
nonInteractiveInput:

0 commit comments

Comments
 (0)