Fix test failures

This commit is contained in:
Tessa Kelly 2020-10-21 17:40:34 -07:00
parent 2dcb5cc8dd
commit bd5f5fd247
5 changed files with 14 additions and 14 deletions

View File

@ -53,7 +53,6 @@ import Html.Styled as Html exposing (Html)
import Html.Styled.Attributes as Attributes import Html.Styled.Attributes as Attributes
import Nri.Ui.Colors.V1 as Colors import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Svg.V1 as Svg exposing (Svg) import Nri.Ui.Svg.V1 as Svg exposing (Svg)
import Nri.Ui.Tooltip.V1 as Tooltip exposing (Tooltip)
{-| -} {-| -}

View File

@ -61,7 +61,7 @@ import Html.Styled.Attributes exposing (css)
import Html.Styled.Events exposing (onClick) import Html.Styled.Events exposing (onClick)
import Markdown import Markdown
import Nri.Ui import Nri.Ui
import Nri.Ui.ClickableSvg.V1 as ClickableSvg import Nri.Ui.ClickableSvg.V2 as ClickableSvg
import Nri.Ui.Colors.V1 as Colors import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Fonts.V1 as Fonts import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Svg.V1 as NriSvg exposing (Svg) import Nri.Ui.Svg.V1 as NriSvg exposing (Svg)
@ -682,8 +682,8 @@ tinyDismissButton msg =
[ ClickableSvg.button "Dismiss message" [ ClickableSvg.button "Dismiss message"
UiIcon.x UiIcon.x
[ ClickableSvg.onClick msg [ ClickableSvg.onClick msg
, ClickableSvg.width (px 16) , ClickableSvg.exactWidth 16
, ClickableSvg.height (px 16) , ClickableSvg.exactHeight 16
, ClickableSvg.css , ClickableSvg.css
[ Css.verticalAlign Css.middle [ Css.verticalAlign Css.middle
, Css.marginLeft (Css.px 5) , Css.marginLeft (Css.px 5)
@ -702,8 +702,8 @@ largeDismissButton msg =
[ ClickableSvg.button "Dismiss message" [ ClickableSvg.button "Dismiss message"
UiIcon.x UiIcon.x
[ ClickableSvg.onClick msg [ ClickableSvg.onClick msg
, ClickableSvg.width (px 16) , ClickableSvg.exactWidth 16
, ClickableSvg.height (px 16) , ClickableSvg.exactHeight 16
] ]
] ]
@ -717,7 +717,7 @@ bannerDismissButton msg =
[ ClickableSvg.button "Dismiss banner" [ ClickableSvg.button "Dismiss banner"
UiIcon.x UiIcon.x
[ ClickableSvg.onClick msg [ ClickableSvg.onClick msg
, ClickableSvg.width (px 16) , ClickableSvg.exactWidth 16
, ClickableSvg.height (px 16) , ClickableSvg.exactHeight 16
] ]
] ]

View File

@ -19,7 +19,7 @@ import Html.Styled as Html
import Html.Styled.Attributes exposing (..) import Html.Styled.Attributes exposing (..)
import Html.Styled.Events exposing (onClick, stopPropagationOn) import Html.Styled.Events exposing (onClick, stopPropagationOn)
import Json.Decode import Json.Decode
import Nri.Ui.ClickableSvg.V1 as ClickableSvg import Nri.Ui.ClickableSvg.V2 as ClickableSvg
import Nri.Ui.Colors.V1 as Colors import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Data.PremiumLevel as PremiumLevel exposing (PremiumLevel) import Nri.Ui.Data.PremiumLevel as PremiumLevel exposing (PremiumLevel)
import Nri.Ui.Fonts.V1 as Fonts import Nri.Ui.Fonts.V1 as Fonts
@ -250,8 +250,8 @@ internalView config =
ClickableSvg.button "Premium" ClickableSvg.button "Premium"
Pennant.premiumFlag Pennant.premiumFlag
[ ClickableSvg.onClick config.premiumMsg [ ClickableSvg.onClick config.premiumMsg
, ClickableSvg.width (px 26) , ClickableSvg.exactWidth 26
, ClickableSvg.height (px 24) , ClickableSvg.exactHeight 24
, ClickableSvg.css [ marginLeft (px 8) ] , ClickableSvg.css [ marginLeft (px 8) ]
] ]
) )

View File

@ -83,7 +83,7 @@ import Html.Styled.Attributes as Attributes
import Html.Styled.Events as Events import Html.Styled.Events as Events
import Json.Encode as Encode import Json.Encode as Encode
import Nri.Ui import Nri.Ui
import Nri.Ui.ClickableSvg.V1 as ClickableSvg import Nri.Ui.ClickableSvg.V2 as ClickableSvg
import Nri.Ui.Colors.V1 as Colors import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Fonts.V1 as Fonts import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Svg.V1 as Svg import Nri.Ui.Svg.V1 as Svg
@ -453,8 +453,8 @@ toggleTip { label } attributes_ =
\events -> \events ->
ClickableSvg.button label ClickableSvg.button label
UiIcon.help UiIcon.help
[ ClickableSvg.width (Css.px 20) [ ClickableSvg.exactWidth 20
, ClickableSvg.height (Css.px 20) , ClickableSvg.exactHeight 20
, ClickableSvg.custom events , ClickableSvg.custom events
, ClickableSvg.css , ClickableSvg.css
[ -- Take up enough room within the document flow [ -- Take up enough room within the document flow

View File

@ -11,6 +11,7 @@
"Nri.Ui.Callout.V1", "Nri.Ui.Callout.V1",
"Nri.Ui.Checkbox.V5", "Nri.Ui.Checkbox.V5",
"Nri.Ui.ClickableSvg.V1", "Nri.Ui.ClickableSvg.V1",
"Nri.Ui.ClickableSvg.V2",
"Nri.Ui.ClickableText.V3", "Nri.Ui.ClickableText.V3",
"Nri.Ui.Colors.Extra", "Nri.Ui.Colors.Extra",
"Nri.Ui.Colors.V1", "Nri.Ui.Colors.V1",