mirror of
https://github.com/mdgriffith/elm-ui.git
synced 2024-11-22 11:52:09 +03:00
add note about Region.description
This commit is contained in:
parent
4d624f2395
commit
658464f215
@ -330,6 +330,8 @@ The `onPress` handler will be fired either `onClick` or when the element is focu
|
||||
, label = text "My Button"
|
||||
}
|
||||
|
||||
**Note** If you have an icon button but want it to be accessible, consider adding a [`Region.description`](Element-Region#description), which will describe the button to screen readers.
|
||||
|
||||
-}
|
||||
button :
|
||||
List (Attribute msg)
|
||||
|
@ -101,7 +101,11 @@ announce =
|
||||
Internal.Describe LivePolite
|
||||
|
||||
|
||||
{-| -}
|
||||
{-| Adds an `aria-label`, which is used by accessibility software to identity otherwise unlabeled elements.
|
||||
|
||||
A common use for this would be to label buttons that only have an icon.
|
||||
|
||||
-}
|
||||
description : String -> Attribute msg
|
||||
description =
|
||||
Internal.Describe << Internal.Label
|
||||
|
Loading…
Reference in New Issue
Block a user