-
Notifications
You must be signed in to change notification settings - Fork 24
Added Aria Labels for buttons in CollectionsTable.jsx and DatabaseSidebar.jsx #76
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
base: main
Are you sure you want to change the base?
Changes from all commits
0139d18
617391b
64721d2
9a542b8
c944f94
1af988c
6acfc4a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,6 +23,7 @@ export default function RecordList({ data, activeCollection, onView }) { | |||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||
| key={record._id} | ||||||||||||||||||||||||||||||||||||||
| className="record-card glass-panel" | ||||||||||||||||||||||||||||||||||||||
| aria-label={`View details for record ${record._id}`} | ||||||||||||||||||||||||||||||||||||||
| onClick={() => onView(record)} | ||||||||||||||||||||||||||||||||||||||
|
Comment on lines
23
to
27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Clickable The βΏ Proposed fix to make the card keyboard-accessible <div
key={record._id}
className="record-card glass-panel"
aria-label={`View details for record ${record._id}`}
+ role="button"
+ tabIndex={0}
onClick={() => onView(record)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter' || e.key === ' ') {
+ e.preventDefault();
+ onView(record);
+ }
+ }}
>π Committable suggestion
Suggested change
π€ Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||
| <div className="record-main-info"> | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
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.
The newly added
aria-labellines in this file contain tab characters / inconsistent indentation (visible in the diff as \t sequences). Please reformat these lines to match the surrounding spacing to avoid noisy diffs and keep formatting consistent.