Merge pull request #1136 from NoRedInk/bat/aria-invalid-select

Adds Aria.invalid to Select
This commit is contained in:
Tessa 2022-10-24 13:20:35 -06:00 committed by GitHub
commit c772cc4fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ module Nri.Ui.Select.V8 exposing
-}
import Accessibility.Styled as Html exposing (Html)
import Accessibility.Styled.Aria as Aria
import Css
import Dict
import Html.Styled.Attributes as Attributes exposing (css)
@ -454,6 +455,7 @@ viewSelect config =
, selectArrowsCss config
]
(onSelectHandler
:: Aria.invalid config.isInError
:: Attributes.id config.id
:: Attributes.disabled config.disabled
:: List.map (Attributes.map never) config.custom