OWASP / OWASP/Nest

bug : Standardize Design Tokens and Resolve Navigation Accessibility Gaps

Open
#4,436 2 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
Python
Stars
451
Forks
702
Avg merge
22h 59m
Merged PRs (30d)
91

Description

### **Description :**
Currently, the frontend contains several hardcoded hex values for colors (e.g., #212529 and #87a1bc) and accessibility oversights in the navigation components that hinder screen reader and keyboard-only users.

### **Changes Proposed:**

Design Tokens: Centralized brand-dark (#212529) and blue-light (#87a1bc) colors in tailwind.config.mjs to ensure visual consistency across Card, Modal, and UserMenu.
A11y (Navigation): Implemented a keyboard focus trap in NavDropDown to prevent focus from escaping the sub-menus unexpectedly.
A11y (Semantic HTML): Updated Footer.tsx to replace "h3" tags with "span" in buttons, resolving redundant heading levels in the document outline.
A11y (Attributes): Added personalized alt text for user avatars in UserMenu and supported aria-hidden attributes for decorative icons.

### **Impact:**
Ensures WCAG compliance for navigation and simplifies future theme updates through centralized tokens.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.