You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured I'd make this early even though it is not released yet. (Edit: Cockpit 337 includes Patternfly v6 migration) We recently merged a big PR to upgrade from Patternfly (PF) v5 to Patternfly v6 which includes a big redesign:
Run npx @patternfly/pf-codemods@latest ./src --v6 --fix -- this will update all the components to the new PF6, note this only runs for the ./src folder
Run npx @patternfly/class-name-updater ./src --v6 --fix -- this will update all the css styling you have here and there, note this only runs for the ./src folder
Add .no-masthead-sidebar class to <Page> components - if you don't have a Page component but PageContent, wrap it all in a Page component with said class. We need this due to plugins being in iframes
Comment out a lot of the custom CSS code you have and run to see how it all looks
Enable CSS one by one to see what is and isn't necessary
Search for pf-v5 to see what needs to be updated - spacers and colors are probably the main culprit here!
If there is anything specific you want help with, just shout in here and I'll help out!
Notes
Semantic colors are just CSS variables that include a style that changes depending on light and dark theme, so it will be two different colors depending on if it's in light or dark mode
Check Patternfly website for their components if you need component specific CSS updated
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I figured I'd make this early even though it is not released yet.(Edit: Cockpit 337 includes Patternfly v6 migration) We recently merged a big PR to upgrade from Patternfly (PF) v5 to Patternfly v6 which includes a big redesign:Guide
If you want to upgrade your plugin to match here is what I would suggest at the moment:
main
-branchpackage.json
Patternfly dependencies to6.1.0
or newer. Using for examplenpx @patternfly/pf-codemods@latest ./src --v6 --fix
-- this will update all the components to the new PF6, note this only runs for the./src
foldernpx @patternfly/class-name-updater ./src --v6 --fix
-- this will update all the css styling you have here and there, note this only runs for the./src
folder.no-masthead-sidebar
class to<Page>
components - if you don't have a Page component but PageContent, wrap it all in a Page component with said class. We need this due to plugins being in iframespf-v5
to see what needs to be updated - spacers and colors are probably the main culprit here!If there is anything specific you want help with, just shout in here and I'll help out!
Notes
Beta Was this translation helpful? Give feedback.
All reactions