Skip to content

Commit

Permalink
[sc-40147] - Adds more aria props
Browse files Browse the repository at this point in the history
  • Loading branch information
robmagary committed Nov 26, 2024
1 parent e15779e commit bf0de58
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/DOM/Erumu/HTML/Attributes.purs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ module DOM.Erumu.HTML.Attributes
( action
, alt
, ariaControls
, ariaDescribedby
, ariaExpanded
, ariaHaspopup
, ariaHidden
, ariaInvalid
, ariaLabelledby
, ariaLive
, ariaModal
, ariaOrientation
, autocomplete
Expand Down Expand Up @@ -82,6 +85,9 @@ alt = attribute "alt"
ariaControls :: forall msg. String -> Prop msg
ariaControls = attribute "aria-controls"

ariaDescribedby :: forall msg. String -> Prop msg
ariaDescribedby = attribute "aria-describedby"

ariaExpanded :: forall msg. Boolean -> Prop msg
ariaExpanded = attribute "aria-expanded" <<< show

Expand All @@ -91,9 +97,15 @@ ariaHaspopup = attribute "aria-haspopup" <<< show
ariaHidden :: forall msg. Boolean -> Prop msg
ariaHidden = attribute "aria-hidden" <<< show

ariaInvalid :: forall msg. Boolean -> Prop msg
ariaInvalid = attribute "aria-invalid" <<< show

ariaLabelledby :: forall msg. String -> Prop msg
ariaLabelledby = attribute "aria-labelledby"

ariaLive :: forall msg. String -> Prop msg
ariaLive = attribute "aria-live"

ariaModal :: forall msg. Boolean -> Prop msg
ariaModal = attribute "aria-modal" <<< show

Expand Down

0 comments on commit bf0de58

Please sign in to comment.