Skip to content

Fixes #39366 - update loader from pf3 to pf5#11006

Open
andreilakatos wants to merge 1 commit into
theforeman:developfrom
andreilakatos:update-loader-to-pf5
Open

Fixes #39366 - update loader from pf3 to pf5#11006
andreilakatos wants to merge 1 commit into
theforeman:developfrom
andreilakatos:update-loader-to-pf5

Conversation

@andreilakatos
Copy link
Copy Markdown
Contributor

@andreilakatos andreilakatos commented May 28, 2026

Summary

Migrates the shared Loader component from legacy patternfly-react to PatternFly 5 (@patternfly/react-core).

The spinner is used across async UI (charts, form submit states, power status, modals, etc.). This keeps loading indicators consistent with the rest of the PF5 UI and removes a dependency on the old PatternFly 3 React bindings.

Changes:

  • Replace Spinner from patternfly-react with Spinner from @patternfly/react-core
  • Remove obsolete loading prop (PF5 spinners are always active)
  • Add aria-label={__('Loading')} for accessibility

Purpose

Foreman is moving table and layout code to PatternFly 5. The shared Loader still used patternfly-react (PF3), which produced inconsistent styling and duplicated spinner implementations. This PR updates that shared loader so pending states use the same PF5 Spinner as LoadingPage, TableIndexPage, and other PF4/PF5 surfaces.

Copy link
Copy Markdown
Contributor

@Lukshio Lukshio left a comment

Choose a reason for hiding this comment

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

Please update tests to RTL - check if component is rendered correctly for multiple sizes

@andreilakatos
Copy link
Copy Markdown
Contributor Author

Please update tests to RTL - check if component is rendered correctly for multiple sizes

Done, had to use sm instead of xs. xs no longer exists for pf5 spinner 🫤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants