Skip to content

Conversation

@wise-king-sullyman
Copy link
Contributor

What: Closes #9150

Additional issues:

@patternfly-build
Copy link
Contributor

patternfly-build commented May 23, 2023

@tlabaj tlabaj requested review from mattnolting and mcoker May 24, 2023 14:38
Copy link
Contributor

@mcoker mcoker left a 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.

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.

Comment on lines 2 to 3
--pf-v5-global--palette--blue--50: #def3ff;
--pf-v5-global--palette--blue--200: #7dc3e8;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
--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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
background: var(--pf-v5-global--palette--blue--50) !important;
background: var(--pf-v5-global--palette--blue-50) !important;

Comment on lines 12 to 13
border-bottom: 1px solid var(--pf-v5-global--palette--blue--200) !important;
border-top: 1px solid var(--pf-v5-global--palette--blue--200) !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
border-bottom: 3px solid var(--pf-v5-global--palette--blue--200) !important;
border-bottom: 3px solid var(--pf-v5-global--palette--blue-200) !important;

Comment on lines 43 to 44
background: var(--pf-v5-global--palette--blue--50);
border: 1px solid var(--pf-v5-global--palette--blue--200);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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);

@wise-king-sullyman wise-king-sullyman requested a review from mcoker May 31, 2023 13:40
Copy link
Contributor

@tlabaj tlabaj left a 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.

Copy link
Contributor

@tlabaj tlabaj left a 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.

Copy link
Contributor

@mcoker mcoker left a 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>
Copy link
Contributor

@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

👍

@tlabaj tlabaj merged commit ae05e89 into patternfly:v5 Jun 1, 2023
@wise-king-sullyman wise-king-sullyman deleted the update-react-styles-class-names branch June 1, 2023 19:53
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-charts@7.0.0-alpha.34
  • @patternfly/react-code-editor@5.0.0-alpha.131
  • @patternfly/react-core@5.0.0-alpha.130
  • @patternfly/react-docs@6.0.0-alpha.140
  • demo-app-ts@5.0.0-alpha.114
  • @patternfly/react-styles@5.0.0-alpha.18
  • @patternfly/react-table@5.0.0-alpha.134

Thanks for your contribution! 🎉

nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
…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>
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.

Bug - react-styles - class names need to be updated

6 participants