fix: invalid child elements in mobile navigation
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
- [X] Yes, I signed my commits.
🚀 Preview for commit 7d62fb335aac8f06576e5c9129c8ad6a87ab759b at: https://69bb6a2ba122f1a972e9f1f3--layer5.netlify.app
🚀 Preview for commit 2c2b4bd9c34c0559e905d5856bb6c795929e98a4 at: https://69bea934fd19e2c6418ece5d--layer5.netlify.app
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.
@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:
@AbhiSahane0 Conflicts !!!!!
@rishiraj38 Resolved, please review the changes.
Thanks.
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.