Skip to content

Fixes #38730 - jobs wizard bottons are same size#1002

Merged
MariaAga merged 1 commit intotheforeman:masterfrom
kfamilonidis:fix-wizard-button
Sep 10, 2025
Merged

Fixes #38730 - jobs wizard bottons are same size#1002
MariaAga merged 1 commit intotheforeman:masterfrom
kfamilonidis:fix-wizard-button

Conversation

@kfamilonidis
Copy link
Copy Markdown
Contributor

In Monitor -> Jobs -> Run Jobs -> all wizard steps footer buttons should be in same size

@kfamilonidis kfamilonidis changed the title Fixes #38730 - jobs wizard bottons are same size Fixes #38730 - jobs wizard bottons are different size Sep 9, 2025
@MariaAga MariaAga self-assigned this Sep 9, 2025
Copy link
Copy Markdown
Member

@MariaAga MariaAga left a comment

Choose a reason for hiding this comment

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

The correct fix for this would be to move the Tooltip to not wrap the buttons, and use triggerRef instead of wrapping them. Read more here: https://v5-archive.patternfly.org/components/tooltip#tooltip

The bug is caused because some of the buttons have a div wrap and some dont, which effects the css
The buttons can be found here: webpack/JobWizard/Footer.js

Image

Comment on lines +148 to +155
.pf-v5-c-wizard__footer {
.pf-m-tertiary {
height: 35px;
}
> div button {
margin-right: 16px;
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This goes against:

Use specific css selectors to avoid conflicts with other plugins or the core.

https://theforeman.org/handbook.html

Revert "Fixes #38730 - jobs wizard bottons are same size"

This reverts commit 7f8dee75bb05560e2fde3ebc83e8638e2ddeeb5f.

Fixes #38730 - jobs wizard bottons are same size
Copy link
Copy Markdown
Member

@MariaAga MariaAga left a comment

Choose a reason for hiding this comment

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

Thank you!

@MariaAga MariaAga merged commit 493ffbc into theforeman:master Sep 10, 2025
25 checks passed
@ofedoren ofedoren changed the title Fixes #38730 - jobs wizard bottons are different size Fixes #38730 - jobs wizard bottons are same size Sep 11, 2025
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.

2 participants