Skip to content

Commit

Permalink
docs(TreeView): better warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
adamviktora committed Mar 27, 2024
1 parent ded994a commit 1253cf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### treeView-warn-selectable-styling-modifier-removed [(#10101)](https://github.com/patternfly/patternfly-react/pull/10101)

Selectable styling attribute (`pf-m-selectable`) has been removed in TreeView component.
Selectable styling attribute (`pf-m-selectable`) has been removed on the list items of the TreeView component. You should update selectors, tests and snapshot tests which are relying on the `pf-m-selectable` class.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ruleTester.run("treeView-warn-selectable-styling-modifier-removed", rule, {
errors: [
{
message:
"Selectable styling attribute (`pf-m-selectable`) has been removed in TreeView component.",
"Selectable styling attribute (`pf-m-selectable`) has been removed on the list items of the TreeView component. You should update selectors, tests and snapshot tests which are relying on the `pf-m-selectable` class.",
type: "JSXOpeningElement",
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
context.report({
node,
message:
"Selectable styling attribute (`pf-m-selectable`) has been removed in TreeView component.",
"Selectable styling attribute (`pf-m-selectable`) has been removed on the list items of the TreeView component. You should update selectors, tests and snapshot tests which are relying on the `pf-m-selectable` class.",
});
}
},
Expand Down

0 comments on commit 1253cf0

Please sign in to comment.