mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Initial website
This commit is contained in:
36
website/elm/ExtraAttr.elm
Normal file
36
website/elm/ExtraAttr.elm
Normal file
@ -0,0 +1,36 @@
|
||||
module ExtraAttr exposing (..)
|
||||
|
||||
import Html exposing (..)
|
||||
import Html.Attributes exposing (..)
|
||||
|
||||
|
||||
ariaExpanded : Bool -> Attribute msg
|
||||
ariaExpanded flag =
|
||||
attribute "aria-expanded"
|
||||
(if flag then
|
||||
"true"
|
||||
|
||||
else
|
||||
"false"
|
||||
)
|
||||
|
||||
|
||||
ariaHidden : Bool -> Attribute msg
|
||||
ariaHidden flag =
|
||||
attribute "aria-hidden"
|
||||
(if flag then
|
||||
"true"
|
||||
|
||||
else
|
||||
"false"
|
||||
)
|
||||
|
||||
|
||||
ariaLabel : String -> Attribute msg
|
||||
ariaLabel name =
|
||||
attribute "aria-label" name
|
||||
|
||||
|
||||
role : String -> Attribute msg
|
||||
role name =
|
||||
attribute "role" name
|
Reference in New Issue
Block a user