Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(DataListAction): Remove isPlainButtonAction prop #775

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

tlabaj
Copy link
Contributor

@tlabaj tlabaj commented Sep 20, 2024

Closes: #762

@kmcfaul kmcfaul linked an issue Sep 23, 2024 that may be closed by this pull request
Copy link
Contributor

@adamviktora adamviktora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is accidentally a .history folder commited.

Other than that and a comment bellow LGTM

import { DataListAction } from "@patternfly/react-core";

export const DataListActionRemoveIsPlainButtonActionPropInput = () => (
<DataListAction />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The isPlainButtonAction prop is missing here

@@ -0,0 +1,17 @@
### dataListAction-remove-isPlainButtonAction-prop [(#10939)](https://github.com/patternfly/patternfly-react/pull/10934)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### dataListAction-remove-isPlainButtonAction-prop [(#10939)](https://github.com/patternfly/patternfly-react/pull/10934)
### dataListAction-remove-isPlainButtonAction-prop [(#10939)](https://github.com/patternfly/patternfly-react/pull/10939)

@@ -0,0 +1,17 @@
### dataListAction-remove-isPlainButtonAction-prop [(#10939)](https://github.com/patternfly/patternfly-react/pull/10934)

The `isPlainButtonAction` prop has been removed from DataListAction as a wrapper is no longer needed when there is a plain button action.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on Michael's comments, maybe something like the following would be more accurate?

Suggested change
The `isPlainButtonAction` prop has been removed from DataListAction as a wrapper is no longer needed when there is a plain button action.
The `isPlainButtonAction` prop has been removed from DataListAction as a wrapper is no longer needed.

Since he had mentioned now applying some styling for non-plain actions as well. If this gets updated we should update the error message in the rule + tests as well.

@thatblindgeye thatblindgeye merged commit 35bb6b4 into patternfly:main Sep 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Datalist] - Remove isPlainButtonAction prop
3 participants