Skip to content
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

change Admin Dashboard to use static rendering and fix invalid markup (H2 within P element) #3916

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

sbwalker
Copy link
Member

No description provided.

@sbwalker sbwalker merged commit 65fb21a into oqtane:dev Feb 28, 2024
1 check passed
Copy link
Contributor

@thabaum thabaum left a comment

Choose a reason for hiding this comment

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

logic may need to be included with a conditional statement or may break a UI that has custom CSS and themes that might target selecting this specific element.

@sbwalker
Copy link
Member Author

@thabaum This component was using h2 elements within p elements - which is invalid according to the HTML spec and was causing rendering issues on static rendering.

@thabaum
Copy link
Contributor

thabaum commented Feb 28, 2024

The change is OK and I understand. I just wanted to be aware someone could have a UI break on upgrade, but I see it as a necessary breaking change if so as it will need to be updated to be correct.

Changing element <p> to <div> will be a potential breaking change for a theme that uses this. But nothing can do as it would make it harder for theme developers to make themes and the trade-off is not worth it.

@sbwalker
Copy link
Member Author

@thabaum the strange part is that this component worked fine on Interactive rendering - but choked on Static rendering. This leads me to conclude that the "enhanced navigation" DOM patching algorithm is not the same as the Interactive "shadow DOM" algorithm.

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