-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat(Masthead): Remove backgroundColor prop #566
Conversation
@@ -0,0 +1,16 @@ | |||
import { renameProps } from '../../helpers'; | |||
|
|||
// https://github.com/patternfly/patternfly-react/pull/9744 |
There was a problem hiding this comment.
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
valid: [ | ||
{ | ||
code: `<Masthead backgroundColor />` | ||
} | ||
], |
There was a problem hiding this comment.
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 />`, |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
Closes #542