mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-29 21:52:59 +03:00
Fix CI
This commit is contained in:
parent
58c29c18d4
commit
556581317f
1
elm.json
1
elm.json
@ -56,6 +56,7 @@
|
|||||||
"Nri.Ui.Panel.V1",
|
"Nri.Ui.Panel.V1",
|
||||||
"Nri.Ui.Pennant.V2",
|
"Nri.Ui.Pennant.V2",
|
||||||
"Nri.Ui.PremiumCheckbox.V8",
|
"Nri.Ui.PremiumCheckbox.V8",
|
||||||
|
"Nri.Ui.QuestionBox.V1",
|
||||||
"Nri.Ui.RadioButton.V4",
|
"Nri.Ui.RadioButton.V4",
|
||||||
"Nri.Ui.RingGauge.V1",
|
"Nri.Ui.RingGauge.V1",
|
||||||
"Nri.Ui.SegmentedControl.V14",
|
"Nri.Ui.SegmentedControl.V14",
|
||||||
|
@ -150,9 +150,10 @@ describe("UI tests", function () {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const skippedRules = {
|
const skippedRules = {
|
||||||
// See https://github.com/dequelabs/axe-core/issues/3649 -- we may be able to remove the Highlighter & Mark skipped rule
|
// See https://github.com/dequelabs/axe-core/issues/3649 -- we may be able to remove the Highlighter, Mark, and Block skipped rule
|
||||||
Highlighter: ["aria-roledescription"],
|
Highlighter: ["aria-roledescription"],
|
||||||
Block: ["aria-roledescription"],
|
Block: ["aria-roledescription"],
|
||||||
|
QuestionBox: ["aria-roledescription"],
|
||||||
// Loading's color contrast check seems to change behavior depending on whether Percy snapshots are taken or not
|
// Loading's color contrast check seems to change behavior depending on whether Percy snapshots are taken or not
|
||||||
Loading: ["color-contrast"],
|
Loading: ["color-contrast"],
|
||||||
RadioButton: ["duplicate-id"],
|
RadioButton: ["duplicate-id"],
|
||||||
|
@ -24,7 +24,6 @@ module Nri.Ui.QuestionBox.V1 exposing
|
|||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
import Browser.Events
|
|
||||||
import Css
|
import Css
|
||||||
import Css.Global
|
import Css.Global
|
||||||
import Dict
|
import Dict
|
||||||
@ -33,19 +32,20 @@ import Html.Styled exposing (..)
|
|||||||
import Html.Styled.Attributes as Attributes exposing (alt, css, id, src)
|
import Html.Styled.Attributes as Attributes exposing (alt, css, id, src)
|
||||||
import Json.Decode as Decode exposing (Decoder)
|
import Json.Decode as Decode exposing (Decoder)
|
||||||
import List.Extra
|
import List.Extra
|
||||||
import Markdown
|
|
||||||
import Nri.Ui.Balloon.V2 as Balloon
|
import Nri.Ui.Balloon.V2 as Balloon
|
||||||
import Nri.Ui.Button.V10 as Button
|
import Nri.Ui.Button.V10 as Button
|
||||||
import Nri.Ui.Colors.V1 as Colors
|
import Nri.Ui.Colors.V1 as Colors
|
||||||
import Nri.Ui.Html.Attributes.V2 exposing (nriDescription)
|
import Nri.Ui.Html.Attributes.V2 exposing (nriDescription)
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
type alias QuestionBox msg =
|
type alias QuestionBox msg =
|
||||||
{ markdown : String
|
{ markdown : String
|
||||||
, actions : List { label : String, onClick : msg }
|
, actions : List { label : String, onClick : msg }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
containerId : String -> String
|
containerId : String -> String
|
||||||
containerId id =
|
containerId id =
|
||||||
"Nri-Scaffolding-QuestionBox-" ++ id
|
"Nri-Scaffolding-QuestionBox-" ++ id
|
||||||
@ -229,6 +229,7 @@ alignTarget { anchors, container } =
|
|||||||
|> (\( highlightStart, highlightEnd ) -> (highlightStart + highlightEnd) / 2 - container.x)
|
|> (\( highlightStart, highlightEnd ) -> (highlightStart + highlightEnd) / 2 - container.x)
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
viewStandalone : QuestionBox msg -> String -> Html msg
|
viewStandalone : QuestionBox msg -> String -> Html msg
|
||||||
viewStandalone questionBox idString =
|
viewStandalone questionBox idString =
|
||||||
div
|
div
|
||||||
@ -242,6 +243,7 @@ viewStandalone questionBox idString =
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
viewAnchored : QuestionBox msg -> String -> AnchoredBoxMeasurementState -> List (Html msg) -> Html msg
|
viewAnchored : QuestionBox msg -> String -> AnchoredBoxMeasurementState -> List (Html msg) -> Html msg
|
||||||
viewAnchored questionBox idString state content =
|
viewAnchored questionBox idString state content =
|
||||||
let
|
let
|
||||||
@ -280,6 +282,7 @@ viewAnchored questionBox idString state content =
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
{-| -}
|
||||||
viewPointingTo : List (Html msg) -> QuestionBox msg -> Html msg
|
viewPointingTo : List (Html msg) -> QuestionBox msg -> Html msg
|
||||||
viewPointingTo content questionBox =
|
viewPointingTo content questionBox =
|
||||||
span
|
span
|
||||||
|
@ -15,7 +15,7 @@ import Debug.Control.View as ControlView
|
|||||||
import EllieLink
|
import EllieLink
|
||||||
import Example exposing (Example)
|
import Example exposing (Example)
|
||||||
import Html.Styled exposing (..)
|
import Html.Styled exposing (..)
|
||||||
import Html.Styled.Attributes exposing (css, id)
|
import Html.Styled.Attributes exposing (css)
|
||||||
import Json.Decode
|
import Json.Decode
|
||||||
import Json.Encode as Encode
|
import Json.Encode as Encode
|
||||||
import Markdown
|
import Markdown
|
||||||
@ -26,7 +26,7 @@ import Nri.Ui.Heading.V3 as Heading
|
|||||||
import Nri.Ui.Highlightable.V1 as Highlightable
|
import Nri.Ui.Highlightable.V1 as Highlightable
|
||||||
import Nri.Ui.Highlighter.V1 as Highlighter
|
import Nri.Ui.Highlighter.V1 as Highlighter
|
||||||
import Nri.Ui.HighlighterTool.V1 as Tool
|
import Nri.Ui.HighlighterTool.V1 as Tool
|
||||||
import Nri.Ui.QuestionBox.V1 as QuestionBox exposing (QuestionBox)
|
import Nri.Ui.QuestionBox.V1 as QuestionBox
|
||||||
import Nri.Ui.Spacing.V1 as Spacing
|
import Nri.Ui.Spacing.V1 as Spacing
|
||||||
import Nri.Ui.Table.V6 as Table
|
import Nri.Ui.Table.V6 as Table
|
||||||
|
|
||||||
|
@ -52,6 +52,7 @@
|
|||||||
"Nri.Ui.Panel.V1",
|
"Nri.Ui.Panel.V1",
|
||||||
"Nri.Ui.Pennant.V2",
|
"Nri.Ui.Pennant.V2",
|
||||||
"Nri.Ui.PremiumCheckbox.V8",
|
"Nri.Ui.PremiumCheckbox.V8",
|
||||||
|
"Nri.Ui.QuestionBox.V1",
|
||||||
"Nri.Ui.RadioButton.V4",
|
"Nri.Ui.RadioButton.V4",
|
||||||
"Nri.Ui.RingGauge.V1",
|
"Nri.Ui.RingGauge.V1",
|
||||||
"Nri.Ui.SegmentedControl.V14",
|
"Nri.Ui.SegmentedControl.V14",
|
||||||
|
Loading…
Reference in New Issue
Block a user