Skip to content

Show hidden header on 'focus-within' #176

@snelsi

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;
}

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