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

View File

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

View File

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

View File

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