layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

fix: invalid child elements in mobile navigation

Open AbhiSahane0 opened this issue 8 months ago • 7 comments

Description

The mobile navigation menu contains invalid nesting that violates HTML5 specifications. An unordered list (<ul>) can only contain <li>, <script>, or elements as direct children.

There are multiple <a> tags placed as direct children of the <ul> tags rather than being wrapped inside an <li>.

This PR fixes #7484

Notes for Reviewers Please review the changes

Signed commits

  • [X] Yes, I signed my commits.

AbhiSahane0 avatar Mar 19 '26 03:03 AbhiSahane0

🚀 Preview for commit 7d62fb335aac8f06576e5c9129c8ad6a87ab759b at: https://69bb6a2ba122f1a972e9f1f3--layer5.netlify.app

l5io avatar Mar 19 '26 03:03 l5io

🚀 Preview for commit 2c2b4bd9c34c0559e905d5856bb6c795929e98a4 at: https://69bea934fd19e2c6418ece5d--layer5.netlify.app

l5io avatar Mar 21 '26 14:03 l5io

Good catch on the HTML5 validity issue, @AbhiSahane0. Direct <a> children of <ul> is indeed a spec violation — browsers handle it gracefully but screen readers and accessibility tools may not, and it can affect SEO. Wrapping those anchors in <li> elements is the correct fix.

A few things needed before merge:

  • No review yet — This PR has been open since March 19 without a formal review. Please add it as an agenda item to the next website community meeting so it gets eyes on it.
  • Visual verification — The Netlify preview was generated for an earlier commit. Please confirm the current commit's preview still shows the mobile navigation rendering correctly — all items visible, no layout regressions, and the menu functioning on mobile viewport sizes.
  • Functional test — Navigation changes can hide regressions easily. Please test that every link in the mobile nav still works and that the menu open/close behavior is unaffected.

The change to src/sections/General/Navigation/index.js is focused and the intent is clear. Looking forward to getting a reviewer on this.

arjunmehta-git avatar Apr 09 '26 07:04 arjunmehta-git

@AbhiSahane0 Thank you for your contribution! Let's discuss this during the website call tomorrow at 5:30 PM IST | 7 AM CST Add it as an agenda item to the meeting minutes, if you would :slightly_smiling_face:

Bhumikagarggg avatar Apr 26 '26 11:04 Bhumikagarggg

@AbhiSahane0 Conflicts !!!!!

rishiraj38 avatar Apr 28 '26 09:04 rishiraj38

@rishiraj38 Resolved, please review the changes.

Thanks.

AbhiSahane0 avatar Apr 29 '26 01:04 AbhiSahane0

Preview deployment for PR #7526 removed.

This PR preview was automatically pruned because we keep only the 6 most recently updated previews on GitHub Pages to stay within deployment size limits.

If needed, push a new commit to this PR to generate a fresh preview.

github-actions[bot] avatar Apr 29 '26 01:04 github-actions[bot]