-
Notifications
You must be signed in to change notification settings - Fork 375
fix(BackgroundImage): Added src URL back, improved unit tests, updated screenshot #9199
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
Conversation
|
Preview: https://patternfly-react-pr-9199.surge.sh A11y report: https://patternfly-react-pr-9199-a11y.surge.sh |
5f734ca to
2bcc8ed
Compare
tlabaj
left a comment
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.
lgtm
| /* eslint-enable camelcase */ | ||
| style={ | ||
| { | ||
| '--pf-v5-c-background-image--BackgroundImage': `url(${src})` |
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.
it would be nice if we had a token/css prop for this - preventing future "replace hard coded values" work
@tlabaj - would it be worth combining with base css prop like --${styles.backgroundImage}--BackgroundImage?
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.
cc @mcoker
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.
Agree - this PR should add a token you can set patternfly/patternfly#5633
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.
@gitdallas @mcoker I think we can take this PR in as is and ope na follow up issue to the core PR.
2bcc8ed to
2b23e5a
Compare
mcarrano
left a comment
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.
Looks good to me. Thanks @jpuzz0 !
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
What: Closes #9180