lenards/elm-ui-patternfly/4.0.2

PF6.SkipToContent

PF6 SkipToContent component

An accessibility skip-navigation link that is visually hidden until focused. Place at the very top of the page layout so keyboard users can jump past navigation.

See: https://www.patternfly.org/components/skip-to-content

Definition

Opaque SkipToContent type

Constructor

{ href : String
, label : String
}

Construct a SkipToContent link

skipToContent { href = "#main-content", label = "Skip to main content" }

Rendering

toMarkup : Theme -> SkipToContent -> Element msg

Render the SkipToContent as an Element msg

The link is visually hidden (positioned off-screen) by default. When the user focuses it via keyboard navigation, it becomes visible at the top of the viewport.