Patch changes:
headingId
as the id
of the h1
produced by Page
h1
produced by Page
programmatically focusableA styled NRI error page.
httpError : Http.Error -> DefaultPage msg -> Html.Styled.Html msg
{ link : msg
, recoveryText : RecoveryText
}
The default page information is for the button which will direct the user back to the main page of the SPA. Specify its name and the message which will navigate to the page.
broken : DefaultPage msg -> Html.Styled.Html msg
For HTTP errors and other broken states.
blockedV4 : String -> DefaultPage msg -> Html.Styled.Html msg
Error page with details for engineers.
blocked : String -> Html.Styled.Html msg
DEPRECATED: please use blockedV4.
For HTTP errors and other broken states, where link goes to "/".
notFound : DefaultPage msg -> Html.Styled.Html msg
For the not found page.
noPermission : DefaultPage msg -> Html.Styled.Html msg
For pages the user does not have access to.
loggedOut : DefaultPage msg -> Html.Styled.Html msg
When the user has been logged out.
timeOut : DefaultPage msg -> Html.Styled.Html msg
When a request takes too long to complete.
networkError : DefaultPage msg -> Html.Styled.Html msg
When a request fails due to a connectivity failure.
ReturnTo just needs the name of the page the user will be returned to. Reload displays default text to reload the current page. Custom is to add flexibility to the button.
headingId : String
This ID is attached to the h1
produced by Page.
This can be useful when you need to move focus to the heading to communicate to AT users that there's been an error.