-
Notifications
You must be signed in to change notification settings - Fork 0
π¨ Palette: [UX improvement] Improve keyboard accessibility of Navbar actions #140
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
Open
Cukurikik
wants to merge
1
commit into
main
Choose a base branch
from
palette-navbar-accessibility-1800931342685046486
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ## 2024-05-18 - Convert interactive `div` elements to semantic `button`s in custom components | ||
| **Learning:** In Next.js with Tailwind CSS, custom interactive UI elements built as `div`s with `cursor-pointer` lack inherent keyboard navigation (Tab-ability) and explicit ARIA roles. The use of `motion.button` and `<button>` requires specific tailwind utility classes for accessible focusing. | ||
| **Action:** Always convert interactive `div` wrappers acting as controls into standard `button` or `motion.button` elements. Additionally, explicitly apply `focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:outline-none` classes to these buttons to ensure standard and prominent focus indicators are visible when interacting with keyboard navigation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
|
|
||
| > [email protected] dev /app | ||
| > cross-env PORT=3000 next dev --webpack | ||
|
|
||
| β² Next.js 16.2.1 (webpack) | ||
| - Local: http://localhost:3000 | ||
| - Network: http://192.168.0.2:3000 | ||
| β Ready in 585ms | ||
| Attention: Next.js now collects completely anonymous telemetry regarding usage. | ||
| This information is used to shape Next.js' roadmap and prioritize features. | ||
| You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: | ||
| https://nextjs.org/telemetry | ||
|
|
||
| - Experiments (use with caution): | ||
| Β· serverActions | ||
|
|
||
| β Compiling / ... | ||
| GET / 200 in 15.1s (next.js: 14.7s, application-code: 465ms) | ||
| GET / 200 in 134ms (next.js: 11ms, application-code: 123ms) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
π§© Analysis chain
π Script executed:
Repository: Cukurikik/HEAVY-TOOLS
Length of output: 92
π Script executed:
Repository: Cukurikik/HEAVY-TOOLS
Length of output: 92
π Script executed:
Repository: Cukurikik/HEAVY-TOOLS
Length of output: 50378
π Script executed:
Repository: Cukurikik/HEAVY-TOOLS
Length of output: 2213
π Script executed:
Repository: Cukurikik/HEAVY-TOOLS
Length of output: 4575
Remove cursor-pointer class or add interactive behavior to system status button.
The button element has no onClick handler or interactive behavior, making the
cursor-pointerclass misleading to users. If this element is purely presentational (showing status only), use a<div role="status" aria-live="polite">instead. If it should be interactive, add the appropriate click handler.π€ Prompt for AI Agents