Fixes #39507 - update editornavbar and radio buttons to pf5 and the tests to RTL#11099
Conversation
38305f7 to
4dd9d8a
Compare
MariaAga
left a comment
There was a problem hiding this comment.
Thought: It seems to me like the pr is trying to achieve the previous look by many customization. Can it rely on PF defaults more, and look more like PF instead of looking like the old editor?
6ad9f6e to
a21734d
Compare
MariaAga
left a comment
There was a problem hiding this comment.
Some visual issues:
- No settings button if the preview warning is shown
- I'm not sure if it looks weird or I'm just not used to it, but the buttons have arrows to scroll through them when the preview warning is shown. The scrolling does work and all buttons are visible so not sure its an issue.
Might be good to move the alert out of the tab bar.
- the safe mode has a custom css in
webpack/assets/javascripts/react_app/components/Editor/components/editorsafemodecheckbox.scssI think its a. can be moved toeditor.cssb. needs to be fixed so it will be aligned (text and checkbox)
|
I tested this PR and the tab switching works correctly. Then there are few alignment issues, that @MariaAga 's already mentioned: Also, the horizontal scrolling includes only the Editor/Changes/Preview tabs and not the rest of the top panel. |
Yep, I'm moving the alert above the editor so we won't have this issue. The horizontal scroll is not something that I implemented, it's default behaviour for tabs. It sort of worked like that before as well, maybe I should implement some horizontal scrolling if the screen is resized. |
|
Re-tested the latest changes and QA-wise LGTM. The alignment issues have been fixed and everything looks like in the screenshots from the previous comment.
I forgot to add that this is not a regression to the PF5 updates. |
88e1da4 to
87d48e8
Compare
* template editor: update navigation bar locator Locator for the template navigation bar (Editor/Changes/Preview) has slightly changed. Related to change theforeman/foreman#11099








Fixes #39507 - update editornavbar and radio buttons to pf5 and the tests to RTL
Before:

After:
