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(Masthead): Remove backgroundColor prop #566

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

wise-king-sullyman
Copy link
Collaborator

Closes #542

@@ -0,0 +1,16 @@
import { renameProps } from '../../helpers';

// https://github.com/patternfly/patternfly-react/pull/9744
Copy link
Collaborator

Choose a reason for hiding this comment

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

PR number should be 9774

Comment on lines 5 to 9
valid: [
{
code: `<Masthead backgroundColor />`
}
],
Copy link
Collaborator

@thatblindgeye thatblindgeye Feb 15, 2024

Choose a reason for hiding this comment

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

Do we still want to include valid cases like this:

{
  code: `import { Masthead } from '@patternfly/react-core'; <Masthead someOtherProp />`
}

to ensure the rule doesn't flag an error unexpectedly

],
invalid: [
{
code: `import { Masthead } from '@patternfly/react-core'; <Masthead backgroundColor />`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe an invalid test where we pass a value to backgroundColor, just to sanity check it still gets removed.

@@ -0,0 +1,18 @@
### masthead-remove-background-color [(#9744)](https://github.com/patternfly/patternfly-react/pull/9744)
Copy link
Collaborator

Choose a reason for hiding this comment

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

PR number needs updating here as well

@thatblindgeye thatblindgeye merged commit d4f52bc into patternfly:main Feb 15, 2024
2 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.

Masthead - Penta masthead
2 participants