-
Notifications
You must be signed in to change notification settings - Fork 375
fix(react-styles): updated class names to include versions #9173
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
fix(react-styles): updated class names to include versions #9173
Conversation
|
Preview: https://patternfly-react-pr-9173.surge.sh A11y report: https://patternfly-react-pr-9173-a11y.surge.sh |
mcoker
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.
None of these classes exist in core, so I tried tracing at least one back and looks like this update should work...
The styles for .pf-v5-c-table__inline-edit-buttons, as an example, are converted to a js file and that's read in here, and the class is applied to the markup. So updating the source CSS should also update the markup, at least for that class. I'm assuming the .pf-v5-c-table__editable-row pf-v5-c-console work the same way? I didn't verify that. Also it's worth noting that I found this snippet in the main branch - I'm assuming this inline-edit-extension dir has been moved to another repo? It isn't on v5 as far as I can tell.
Line 57 in a0f857c
| styles.tableInlineEditButtons, |
However, the color vars do need to be updated. The format is --pf-v5-global--palette--[color]-[number] - just need to remove the extra hyphen between the color name and number.
| --pf-v5-global--palette--blue--50: #def3ff; | ||
| --pf-v5-global--palette--blue--200: #7dc3e8; |
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.
| --pf-v5-global--palette--blue--50: #def3ff; | |
| --pf-v5-global--palette--blue--200: #7dc3e8; | |
| --pf-v5-global--palette--blue-50: #def3ff; | |
| --pf-v5-global--palette--blue-200: #7dc3e8; |
| background: var(--pf-v5-global--Blue--50) !important; | ||
| tr.pf-v5-c-table__editable-row:hover, | ||
| tr.pf-v5-c-table__editable-row.pf-m-editing { | ||
| background: var(--pf-v5-global--palette--blue--50) !important; |
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.
| background: var(--pf-v5-global--palette--blue--50) !important; | |
| background: var(--pf-v5-global--palette--blue-50) !important; |
| border-bottom: 1px solid var(--pf-v5-global--palette--blue--200) !important; | ||
| border-top: 1px solid var(--pf-v5-global--palette--blue--200) !important; |
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.
| border-bottom: 1px solid var(--pf-v5-global--palette--blue--200) !important; | |
| border-top: 1px solid var(--pf-v5-global--palette--blue--200) !important; | |
| border-bottom: 1px solid var(--pf-v5-global--palette--blue-200) !important; | |
| border-top: 1px solid var(--pf-v5-global--palette--blue-200) !important; |
| border-left: 1px solid var(--pf-v5-global--Blue--200) !important; | ||
| tr.pf-v5-c-table__editable-row:hover td:first-child, | ||
| tr.pf-v5-c-table__editable-row.pf-m-editing td:first-child { | ||
| border-left: 1px solid var(--pf-v5-global--palette--blue--200) !important; |
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.
| border-left: 1px solid var(--pf-v5-global--palette--blue--200) !important; | |
| border-left: 1px solid var(--pf-v5-global--palette--blue-200) !important; |
| border-right: 1px solid var(--pf-v5-global--Blue--200) !important; | ||
| tr.pf-v5-c-table__editable-row:hover td:last-child, | ||
| tr.pf-v5-c-table__editable-row.pf-m-editing td:last-child { | ||
| border-right: 1px solid var(--pf-v5-global--palette--blue--200) !important; |
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.
| border-right: 1px solid var(--pf-v5-global--palette--blue--200) !important; | |
| border-right: 1px solid var(--pf-v5-global--palette--blue-200) !important; |
| tr.pf-c-table__editable-row.pf-m-table-editing-first-row { | ||
| border-top: 3px solid var(--pf-v5-global--Blue--200) !important; | ||
| tr.pf-v5-c-table__editable-row.pf-m-table-editing-first-row { | ||
| border-top: 3px solid var(--pf-v5-global--palette--blue--200) !important; |
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.
| border-top: 3px solid var(--pf-v5-global--palette--blue--200) !important; | |
| border-top: 3px solid var(--pf-v5-global--palette--blue-200) !important; |
| tr.pf-c-table__editable-row.pf-m-table-editing-last-row { | ||
| border-bottom: 3px solid var(--pf-v5-global--Blue--200) !important; | ||
| tr.pf-v5-c-table__editable-row.pf-m-table-editing-last-row { | ||
| border-bottom: 3px solid var(--pf-v5-global--palette--blue--200) !important; |
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.
| border-bottom: 3px solid var(--pf-v5-global--palette--blue--200) !important; | |
| border-bottom: 3px solid var(--pf-v5-global--palette--blue-200) !important; |
| background: var(--pf-v5-global--palette--blue--50); | ||
| border: 1px solid var(--pf-v5-global--palette--blue--200); |
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.
| background: var(--pf-v5-global--palette--blue--50); | |
| border: 1px solid var(--pf-v5-global--palette--blue--200); | |
| background: var(--pf-v5-global--palette--blue-50); | |
| border: 1px solid var(--pf-v5-global--palette--blue-200); |
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
I will defer to css for final approval.
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
I will defer to css for final approval.
mcoker
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.
one more small one I missed
Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
mcoker
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.
👍
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
…y#9173) * fix(react-styles): updated class names to include versions * chore(react-styles): removed extra hyphen from class names * Update packages/react-styles/src/css/components/Table/inline-edit.css Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com> --------- Co-authored-by: Michael Coker <35148959+mcoker@users.noreply.github.com>
What: Closes #9150
Additional issues: