-
Notifications
You must be signed in to change notification settings - Fork 375
fix(Multiple): update old component classnames #9139
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-9139.surge.sh A11y report: https://patternfly-react-pr-9139-a11y.surge.sh |
wise-king-sullyman
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.
I'm still curious about my previous questions, but I wouldn't block for either of them.
|
@wise-king-sullyman Ah - I think I just searched the react-core/component dir.. I'll see if I can update those real quick and see what's going on with the icons. |
|
@mcoker @srambach @mattnolting any idea about the spacing of icons? for v5 i'm seeing https://patternfly-react-v5.surge.sh/patterns/primary-detail/react-demos/primary-detail-full-page/ : and for v4 i'm seeing https://www.patternfly.org/v4/demos/primary-detail/react-demos/primary-detail-full-page/ : the v5 margin-right is coming up as nothing |
|
@gitdallas @wise-king-sullyman nice find! That's a bug in core - your update looks good to me. I created a core issue to fix that, no react follow up should be needed patternfly/patternfly#5591 |
|
@mcoker if you could give an approval with your "approval", that'd be great 😆 |
@mcoker that is a PR approval correct? |
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.
LGTM! I see some others that should probably be updated, too? But looks like they're all example things, so no rush for release candidate.
Components
packages/react-core//src/components/MenuToggle/examples/MenuToggle.css:#ws-react-c-menu-toggle-primary .pf-c-menu-toggle, #ws-react-c-menu-toggle-secondary .pf-c-menu-toggle {
packages/react-core//src/components/Alert/examples/alert.css:.ws-react-c-alert .pf-c-alert {
packages/react-core//src/components/Checkbox/examples/checkbox.css:.ws-react-c-checkbox .pf-c-check.nested {
packages/react-core//src/demos/JumpLinks.md: const masthead = document.getElementsByClassName('pf-c-masthead')[0];
packages/react-core//src/demos/examples/JumpLinks/JumpLinksWithDrawer.js: const masthead = document.getElementsByClassName('pf-c-masthead')[0];
Layouts
packages/react-core//src/layouts/Split/examples/split.css:.ws-react-l-split .pf-l-split,
packages/react-core//src/layouts/Split/examples/split.css:.ws-react-l-split .pf-l-split > .pf-l-split__item {
packages/react-core//src/layouts/Gallery/examples/gallery.css:.ws-react-l-gallery .pf-l-gallery {
packages/react-core//src/layouts/Gallery/examples/gallery.css:.ws-react-l-gallery .pf-l-gallery > div {
packages/react-core//src/layouts/Bullseye/examples/bullseye.css:.ws-react-l-bullseye .pf-l-bullseye,
packages/react-core//src/layouts/Bullseye/examples/bullseye.css:.ws-react-l-bullseye .pf-l-bullseye > div {
packages/react-core//src/layouts/Level/examples/level.css:.ws-react-l-level .pf-l-level {
packages/react-core//src/layouts/Level/examples/level.css:.ws-react-l-level .pf-l-level,
packages/react-core//src/layouts/Level/examples/level.css:.ws-react-l-level .pf-l-level > div {
packages/react-core//src/layouts/Stack/examples/stack.css:.ws-react-l-stack > .pf-l-stack {
packages/react-core//src/layouts/Stack/examples/stack.css:.ws-react-l-stack .pf-l-stack,
packages/react-core//src/layouts/Stack/examples/stack.css:.ws-react-l-stack .pf-l-stack > .pf-l-stack__item {
packages/react-core//src/layouts/Flex/__tests__/Flex.test.tsx: .className.replace('pf-l-flex', '')
packages/react-core//src/layouts/Flex/examples/flex.css:.ws-react-l-flex .pf-l-flex {
packages/react-core//src/layouts/Flex/examples/flex.css:.ws-react-l-flex .pf-l-flex > div,
packages/react-core//src/layouts/Grid/examples/grid.css:.ws-react-l-grid > .pf-l-grid,
packages/react-core//src/layouts/Grid/examples/grid.css:.ws-react-l-grid > .pf-l-grid > .pf-l-grid__item {
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">100C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">50C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">3.6Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">1.5Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0GHZ</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">100C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">50C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">3.6Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">1.5Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0GHZ</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">100C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">50C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">3.6Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">1.5Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0GHZ</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">100C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">50C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">3.6Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">1.5Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0GHZ</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">100C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">50C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">3.6Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">1.5Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0GHZ</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">100C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">50C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0C</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">3.6Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">1.5Ghz</div>
packages/react-core//src/demos/CardDemos.md: <div className="pf-l-flex__item">0GHZ</div>
|
@mcoker @tlabaj |
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.
@dlabrecq does this will need to be updated correct? I can open a follow up to this PR.
|
@tlabaj charts uses tokens, so snapshots will need updating. However, the only "pf-" prefixes are for a couple keys and a chart pattern ID. |
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 looks like some updates are needed in react-styles and anywhere those classes are being pulled in. the classes her are still using pf-c prefix. The Popper should at least be updated here and we can follow up with the rest. They may require some investigation.
https://github.com/patternfly/patternfly-react/tree/v5/packages/react-styles/src/css/components
|
re: the react-styles updates @tlabaj mentioned, I'm not sure where the names for the color vars are coming from - https://github.com/patternfly/patternfly-react/blob/v5/packages/react-styles/src/css/components/Table/inline-edit.css We don't have a I can't find an editable table example using composable table, but I see the legacy table example - https://www.patternfly.org/v4/components/table/react-legacy#editable-rows. It doesn't look like any of the classnames in https://github.com/patternfly/patternfly-react/blob/v5/packages/react-styles/src/css/components/Table/inline-edit.css are being applied in edit mode. If those colors still need to be applied, |
|
@tlabaj I think that can be a follow up issue because there are lots of other problems with that CSS. |
93c8786 to
d570b79
Compare
@dlabrecq sorry i forgot to paste a link to what I was talking about above. I assume this is what needs to be updated correct? |
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.
popper class lgtm 👍
* fix(Multiple): update old component classnames * update cypress test selectors * fix cypress selectors * fix cypress selectors * update some code-editor/deprecated/table/integration directories * update popper css --------- Co-authored-by: nicolethoen <nthoen@redhat.com>




Closes #9128
Possibly closes or atleast makes effort towards #9116 . I replaced hard coded classes in instances that the style object had one to match.