mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 22:53:34 +03:00
Adds alertDialog role docs
This commit is contained in:
parent
7be5ef62b7
commit
d6c6313154
@ -340,7 +340,15 @@ alertRole =
|
|||||||
Attribute <| \config -> { config | role = Just AlertRole }
|
Attribute <| \config -> { config | role = Just AlertRole }
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| Use this attribute when a user's immediate attention on the Message is required,
|
||||||
|
the Message contains interactible elements, and you're correctly set up the Message to be
|
||||||
|
modal (i.e., you've set up tab-wrapping, the body's overflow is hidden, the user
|
||||||
|
can't interact with elements apart from the Message's contents...)
|
||||||
|
|
||||||
|
When you use this role, verify that you are using it correctly using [this
|
||||||
|
MDN article](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_alertdialog_role).
|
||||||
|
|
||||||
|
-}
|
||||||
alertDialogRole : Attribute msg
|
alertDialogRole : Attribute msg
|
||||||
alertDialogRole =
|
alertDialogRole =
|
||||||
Attribute <| \config -> { config | role = Just AlertDialog }
|
Attribute <| \config -> { config | role = Just AlertDialog }
|
||||||
|
Loading…
Reference in New Issue
Block a user