You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/no-static-element-interactions.md
+1-23Lines changed: 1 addition & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,23 +79,11 @@ You may configure which handler props should be taken into account when applying
79
79
'onKeyUp',
80
80
],
81
81
allowExpressionValues:true,
82
-
attributes: [
83
-
{
84
-
components: ['a', 'Link'],
85
-
attributes: {
86
-
href: ['to', 'href'],
87
-
},
88
-
},
89
-
],
90
82
},
91
83
],
92
84
```
93
85
94
-
### `handlers`
95
-
96
-
Adjust the list of handler prop names in the `handlers` array to increase or decrease the coverage surface of this rule in your codebase.
97
-
98
-
### `allowExpressionValues`
86
+
Adjust the list of handler prop names in the handlers array to increase or decrease the coverage surface of this rule in your codebase.
99
87
100
88
The `allowExpressionValues` option determines whether the `role` attribute is allowed to be assigned using an expression. For example, the following would pass in recommended mode if `allowExpressionValues` is set to be `true`:
101
89
@@ -105,16 +93,6 @@ The `allowExpressionValues` option determines whether the `role` attribute is al
The `attributes` array allows to set custom attributes for a given list of components. This is useful in cases where you are utilizing libraries that may have different prop names mapped to a native attribute (e.g., `to` being used for `href`)
111
-
112
-
```jsx
113
-
// these will be valid given the `attributes` option above
consterrorMessage='Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.';
0 commit comments