Skip to content

[EuiHeaderLinks][KEYBOARD]: HeaderLinks component needs optional ref and tabindex props to facilitate keyboard focus #5248

Closed as not planned

Description

@1Copenut

Description
I'd like to request we add two optional props to the <HeaderLinks /> component:

  1. A ref hook of type <HTMLElement>
  2. A tabindex with default value of -1

I'm reviewing an issue in Kibana where focus is not managed properly on the dashboard views when users click the Edit/Save button to switch from View to Edit mode and back again. The larger issue is Kibana-specific, but these props will enable consumers to manage focus with custom event handlers.

Success criteria

  • The ref may only need to be added to our EuiHeaderLinksProps type
  • tabindex="-1" could be a boolean like isFocusable that sets "-1" or only if the prop is passed
  • No focus halo when the element takes focus. I'm happy to discuss this one further, because it's a gray area.

Activity

  1. changed the title [-][KEYBOARD]: HeaderLinks component needs optional ref and tabindex props to facilitate keyboard focus[/-] [+][EuiHeaderLinks][KEYBOARD]: HeaderLinks component needs optional ref and tabindex props to facilitate keyboard focus[/+] on Oct 7, 2021
  2. github-actions commented on Apr 6, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  3. added
    stale-issue
    on Apr 6, 2022
  4. removed
    stale-issue
    on Apr 6, 2022
  5. 1Copenut commented on Apr 6, 2022

    @1Copenut
    ContributorAuthor

    Keep open please

  6. github-actions commented on Oct 3, 2022

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  7. added
    stale-issue
    on Oct 3, 2022
  8. added and removed
    stale-issue
    on Oct 3, 2022
  9. github-actions commented on Apr 19, 2023

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  10. added
    stale-issue
    on Apr 19, 2023
  11. github-actions commented on Oct 22, 2023

    @github-actions

    ❌ Per our previous message, this issue is auto-closing after having been open and inactive for a year. If you strongly feel this is still a high-priority issue, or are interested in contributing, please leave a comment or open a new issue linking to this one for context.

  12. added
    stale-issue-closed
    on Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitystale-issuestale-issue-closed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions