Skip to content

fix: add aria-label to inline edit inputs for accessibility#899

Merged
marketcalls merged 1 commit intomarketcalls:mainfrom
omorros:fix/aria-labels-inline-edit
Feb 11, 2026
Merged

fix: add aria-label to inline edit inputs for accessibility#899
marketcalls merged 1 commit intomarketcalls:mainfrom
omorros:fix/aria-labels-inline-edit

Conversation

@omorros
Copy link
Copy Markdown
Contributor

@omorros omorros commented Feb 11, 2026

Summary

  • Add aria-label to time inputs in MarketTimings inline edit mode
  • Add aria-label to freeze quantity input in FreezeQty inline edit mode
  • Add aria-label to special session time inputs in Holidays dialog

Closes #890

What this fixes

Screen readers couldn't identify inline edit input fields because they had no aria-label or associated <label> element.
This violates WCAG 2.1 guidelines 1.3.1 (Info and Relationships) and 3.3.2 (Labels or Instructions).

Each label is dynamic and includes the exchange/symbol name for better context (e.g., "Start time for NSE", "Freeze quantity for NIFTY").

Files changed

  • frontend/src/pages/admin/MarketTimings.tsx — 2 inputs (start time, end time)
  • frontend/src/pages/admin/FreezeQty.tsx — 1 input (freeze quantity)
  • frontend/src/pages/admin/Holidays.tsx — 2 inputs (special session start/end time)

Summary by cubic

Added aria-labels to inline edit inputs so screen readers can identify them. Labels are dynamic and include the exchange or symbol for context.

  • Bug Fixes
    • MarketTimings: start/end time inputs.
    • FreezeQty: freeze quantity input.
    • Holidays: special session start/end time inputs.

Written for commit 261df58. Summary will update on new commits.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Copy link
Copy Markdown
Owner

@marketcalls marketcalls left a comment

Choose a reason for hiding this comment

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

Clean, correct, and complete. All 5 inline edit inputs across 3 admin pages are covered with well-crafted dynamic aria-labels. No security concerns — React treats aria-label as a string attribute (no HTML parsing), and the interpolated values (exchange/symbol names) are already visible in the UI. Good work going beyond the original scope to cover FreezeQty and Holidays as well.

@marketcalls marketcalls merged commit a7df570 into marketcalls:main Feb 11, 2026
3 checks passed
@omorros omorros deleted the fix/aria-labels-inline-edit branch February 11, 2026 11:24
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.

frontend: Add aria-label to form inputs in inline edit mode

2 participants