mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-13 18:43:19 +03:00
Adds nri description, testid, and id to button
This commit is contained in:
parent
5abcdf9d78
commit
2ca0db9f76
@ -1,7 +1,7 @@
|
|||||||
module Nri.Ui.Button.V10 exposing
|
module Nri.Ui.Button.V10 exposing
|
||||||
( button, link
|
( button, link
|
||||||
, Attribute
|
, Attribute
|
||||||
, icon, custom, css
|
, icon, custom, css, nriDescription, testId, id
|
||||||
, onClick
|
, onClick
|
||||||
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||||
, small, medium, large
|
, small, medium, large
|
||||||
@ -30,7 +30,7 @@ module Nri.Ui.Button.V10 exposing
|
|||||||
|
|
||||||
@docs button, link
|
@docs button, link
|
||||||
@docs Attribute
|
@docs Attribute
|
||||||
@docs icon, custom, css
|
@docs icon, custom, css, nriDescription, testId, id
|
||||||
|
|
||||||
|
|
||||||
## Behavior
|
## Behavior
|
||||||
@ -70,6 +70,7 @@ import Css exposing (Style)
|
|||||||
import Css.Global
|
import Css.Global
|
||||||
import Html.Styled as Styled
|
import Html.Styled as Styled
|
||||||
import Html.Styled.Attributes as Attributes
|
import Html.Styled.Attributes as Attributes
|
||||||
|
import Nri.Ui.Html.Attributes.V2 as ExtraAttributes
|
||||||
import Html.Styled.Events as Events
|
import Html.Styled.Events as Events
|
||||||
import Markdown.Block
|
import Markdown.Block
|
||||||
import Markdown.Inline
|
import Markdown.Inline
|
||||||
@ -150,6 +151,24 @@ custom attributes =
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
|
nriDescription : String -> Attribute msg
|
||||||
|
nriDescription description =
|
||||||
|
custom [ ExtraAttributes.nriDescription description ]
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
|
testId : String -> Attribute msg
|
||||||
|
testId id_ =
|
||||||
|
custom [ ExtraAttributes.testId id_ ]
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
|
id : String -> Attribute msg
|
||||||
|
id id_ =
|
||||||
|
custom [ Attributes.id id_ ]
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
{-| -}
|
||||||
css : List Style -> Attribute msg
|
css : List Style -> Attribute msg
|
||||||
css styles =
|
css styles =
|
||||||
|
Loading…
Reference in New Issue
Block a user