fapian/elm-html-aria/1.0.0

NOTE: this package is not compatible with Elm 0.19.1

Html.Attributes.Aria

Additional attributes for html

Aria role

role : String -> Attribute msg

An attribute to support the role classification of elements. See the official specs.

div [ role "button" ] [ text "Submit" ]

Aria Attributes

ariaActiveDescendant : String -> Attribute msg

Identifies the currently active descendant of a composite widget. See the official specs.

div [ ariaActivedescendant "id" ] [ text "Hello aria!" ]
ariaChecked : String -> Attribute msg

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. See the official specs.

div [ ariaChecked "true" ] [ text "Hello aria!" ]
ariaDescribedby : String -> Attribute msg

Identifies the element (or elements) that describes the object. See the official specs.

div [ ariaDescribedby "id" ] [ text "Hello aria!" ]
ariaDisabled : Bool -> Attribute msg

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. See the official specs.

div [ ariaDisabled True ] [ text "Hello aria!" ]
ariaExpanded : String -> Attribute msg

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. See the official specs.

div [ ariaExpanded "true" ] [ text "Hello aria!" ]
ariaHidden : Bool -> Attribute msg

Indicates that the element and all of its descendants are not visible or perceivable to any user as implemented by the author. See the official specs.

div [ ariaHidden True ] [ text "Hello aria!" ]
ariaLabel : String -> Attribute msg

Defines a string value that labels the current element. See the official specs.

div [ ariaLabel "label" ] [ text "Hello aria!" ]
ariaLabelledby : String -> Attribute msg

Identifies the element (or elements) that labels the current element. See the official specs.

div [ ariaLabelledby "id" ] [ text "Hello aria!" ]
ariaReadonly : Bool -> Attribute msg

Indicates that the element is not editable, but is otherwise operable. See the official specs.

div [ ariaReadonly True ] [ text "Hello aria!" ]
ariaRequired : Bool -> Attribute msg

Indicates that user input is required on the element before a form may be submitted. See the official specs.

div [ ariaRequired True ] [ text "Hello aria!" ]
ariaSelected : String -> Attribute msg

Indicates the current "selected" state of various widgets. See the official specs.

div [ ariaSelected "true" ] [ text "Hello aria!" ]