-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fixing html error in the admin UI (Lombiq Technologies: OCORE-87) #11425
Conversation
src/OrchardCore.Modules/OrchardCore.AuditTrail/Navigation/AuditTrailSettingsAdminMenu.cs
Show resolved
Hide resolved
src/OrchardCore.Modules/OrchardCore.Users/Views/UserMenu.cshtml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run it though the https://validator.w3.org/ validator as well, please.
src/OrchardCore.Modules/OrchardCore.Users/Views/UserMenu.cshtml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but actually, not the W3C validator, but please run it through html-validate
(it's a CLI tool, you can just use it with local files) so we can get the consistent results. Doesn't it show anything new?
I wasn't running it properly before. I found some mistakes, and most errors in the "UserMenu.cshtml" and "Layout. cshtml" should be fixed. I didn't find any error in the Admin.css. UserMenu:
Layout:
|
@@ -65,7 +67,9 @@ | |||
<div id="ta-left-sidebar" class="d-flex flex-column justify-content-between align-items-stretch"> | |||
@await RenderSectionAsync("Navigation", required: false) | |||
<div class="footer"> | |||
<button class="leftbar-compactor" type="button" title="@T["Collapse / expand menu"]"></button> | |||
<button type="button" class="leftbar-compactor" title="@T["Collapse / expand menu"]"> | |||
<span>@T["Collapse / expand menu"]</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time use class="d-none"
I was writing a UI test for one of our Lombiq modules, and I came across some UI errors/warnings in the admin page.
I am attaching the validation report, and here are the rules which got validated:
HtmlValidationReport.txt