mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-07 06:56:53 +03:00
Adds helpers to clickable test
This commit is contained in:
parent
b262c1879b
commit
9b4e46145d
@ -70,7 +70,6 @@ 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
|
||||||
@ -78,6 +77,7 @@ import Nri.Ui
|
|||||||
import Nri.Ui.Colors.Extra as ColorsExtra
|
import Nri.Ui.Colors.Extra as ColorsExtra
|
||||||
import Nri.Ui.Colors.V1 as Colors
|
import Nri.Ui.Colors.V1 as Colors
|
||||||
import Nri.Ui.Fonts.V1
|
import Nri.Ui.Fonts.V1
|
||||||
|
import Nri.Ui.Html.Attributes.V2 as ExtraAttributes
|
||||||
import Nri.Ui.Svg.V1 as NriSvg exposing (Svg)
|
import Nri.Ui.Svg.V1 as NriSvg exposing (Svg)
|
||||||
import Svg
|
import Svg
|
||||||
import Svg.Attributes
|
import Svg.Attributes
|
||||||
|
@ -51,8 +51,8 @@ import ClickableAttributes exposing (ClickableAttributes)
|
|||||||
import Css exposing (Color, Style)
|
import Css exposing (Color, Style)
|
||||||
import Html.Styled as Html exposing (Html)
|
import Html.Styled as Html exposing (Html)
|
||||||
import Html.Styled.Attributes as Attributes
|
import Html.Styled.Attributes as Attributes
|
||||||
import Nri.Ui.Html.Attributes.V2 as ExtraAttributes
|
|
||||||
import Nri.Ui.Colors.V1 as Colors
|
import Nri.Ui.Colors.V1 as Colors
|
||||||
|
import Nri.Ui.Html.Attributes.V2 as ExtraAttributes
|
||||||
import Nri.Ui.Svg.V1 as Svg exposing (Svg)
|
import Nri.Ui.Svg.V1 as Svg exposing (Svg)
|
||||||
|
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ module Nri.Ui.ClickableText.V3 exposing
|
|||||||
, onClick
|
, onClick
|
||||||
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||||
, icon
|
, icon
|
||||||
, custom, css
|
, custom, css, nriDescription, testId, id
|
||||||
)
|
)
|
||||||
|
|
||||||
{-|
|
{-|
|
||||||
@ -62,7 +62,7 @@ HTML `<a>` elements and are created here with `*Link` functions.
|
|||||||
@docs href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
@docs href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||||
|
|
||||||
@docs icon
|
@docs icon
|
||||||
@docs custom, css
|
@docs custom, css, nriDescription, testId, id
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
@ -73,6 +73,7 @@ import Html.Styled.Attributes as Attributes
|
|||||||
import Nri.Ui
|
import Nri.Ui
|
||||||
import Nri.Ui.Colors.V1 as Colors
|
import Nri.Ui.Colors.V1 as Colors
|
||||||
import Nri.Ui.Fonts.V1
|
import Nri.Ui.Fonts.V1
|
||||||
|
import Nri.Ui.Html.Attributes.V2 as ExtraAttributes
|
||||||
import Nri.Ui.Svg.V1 as NriSvg exposing (Svg)
|
import Nri.Ui.Svg.V1 as NriSvg exposing (Svg)
|
||||||
|
|
||||||
|
|
||||||
@ -128,6 +129,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