Skip to content

Show hidden header on 'focus-within' #176

Description

@snelsi

Currently, if you have links or buttons in the header, then scroll down and try to navigate your page by keyboard 'tab', elements in the header will be focused, but the header itself won't appear.

Check my sandbox
This is possibly an accessibility issue and a bug.

Possible solution is just apply 'headroom--pinned' styles on 'headroom--unpinned:focus-within':

.headroom--unpinned:focus-within {
    transform: translate3d(0px, 0, 0px) !important;
}

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions