Repository navigation
π¨ Palette: Add keyboard accessibility to FastMCP status badge - #46
jasandroidx wants to merge 1 commit into
Conversation
This commit improves the accessibility of the FastMCP status badge in the Keep interface.
Previously, the badge was implemented as a generic \`div\` element with an \`onClick\` handler,
rendering it inaccessible to keyboard users and screen readers.
The following attributes and behaviors have been added to the interactive \`div\`:
- \`role="button"\`: Semantically identifies the element as a button.
- \`tabIndex={0}\`: Allows the element to be focused via the keyboard (Tab key).
- \`aria-label\`: Provides an accessible name for screen readers indicating its function and status.
- \`onKeyDown\`: A custom event handler that triggers the check action when the Enter or Space keys are pressed.
- \`focus-visible:outline-none focus-visible:ring-2 ...\`: Adds visible focus styling using Tailwind CSS to indicate when the element is focused via the keyboard.
Co-authored-by: jasandroidx <77057656+jasandroidx@users.noreply.github.com>
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Closing as duplicate β the FastMCP badge keyboard-accessibility work landed via #53 (real + aria-label + focus-visible hover card). This PR is the same one-file change on a stale base. |
Understood. Acknowledging that this PR is a duplicate and is now closed. Stopping work. |
This PR implements a micro-UX enhancement to improve the accessibility of the interactive `FastMCPStatusBadge` component.
π‘ What:
Added `role="button"`, `tabIndex={0}`, `onKeyDown` (Enter/Space), `aria-label`, and `focus-visible` styling to the
FastMCPStatusBadgecomponent.π― Why:
The FastMCP status badge is interactive and triggers a network check when clicked. However, because it was implemented using a generic `div` element instead of a native ``, it was entirely unreachable and unusable for users navigating with a keyboard or screen reader.
βΏ Accessibility:
Tabkey.EnterorSpace.PR created automatically by Jules for task 7100615600516754420 started by @jasandroidx