Merge pull request #1471 from NoRedInk/highlight-hover-style

A11-3441 Prevent applying hover styles after toggling highlight
This commit is contained in:
Charbel 2023-08-21 18:03:02 -03:00 committed by GitHub
commit 7c65f46a8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1570 additions and 4 deletions

View File

@ -24,7 +24,7 @@ import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Heading.V3 as Heading
import Nri.Ui.Highlightable.V3 as Highlightable exposing (Highlightable)
import Nri.Ui.Highlighter.V4 as Highlighter
import Nri.Ui.Highlighter.V5 as Highlighter
import Nri.Ui.HighlighterTool.V1 as Tool
import Nri.Ui.Table.V7 as Table
import Nri.Ui.Text.V6 as Text
@ -38,7 +38,7 @@ moduleName =
version : Int
version =
3
5
{-| -}
@ -78,7 +78,7 @@ example =
, settings = state.settings
, mainType = Nothing
, extraCode =
[ "import Nri.Ui.Highlightable.V2 as Highlightable"
[ "import Nri.Ui.Highlightable.V3 as Highlightable"
, "import Nri.Ui.HighlighterTool.V1 as Tool"
]
, renderExample = Code.unstyledView

View File

@ -39,6 +39,7 @@
"Nri.Ui.Heading.V3",
"Nri.Ui.Highlightable.V3",
"Nri.Ui.Highlighter.V4",
"Nri.Ui.Highlighter.V5",
"Nri.Ui.HighlighterTool.V1",
"Nri.Ui.HighlighterToolbar.V3",
"Nri.Ui.Html.Attributes.V2",

View File

@ -109,6 +109,9 @@ hint = 'upgrade to V4'
[forbidden."Nri.Ui.Highlighter.V3"]
hint = 'upgrade to V4'
[forbidden."Nri.Ui.Highlighter.V4"]
hint = 'upgrade to V5'
[forbidden."Nri.Ui.HighlighterToolbar.V1"]
hint = 'upgrade to V3'

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@ import Html.Styled exposing (Html, toUnstyled)
import List.Extra
import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Highlightable.V3 as Highlightable exposing (Highlightable)
import Nri.Ui.Highlighter.V4 as Highlighter
import Nri.Ui.Highlighter.V5 as Highlighter
import Nri.Ui.HighlighterTool.V1 as Tool exposing (Tool)
import ProgramTest exposing (..)
import Sort

View File

@ -35,6 +35,7 @@
"Nri.Ui.Heading.V3",
"Nri.Ui.Highlightable.V3",
"Nri.Ui.Highlighter.V4",
"Nri.Ui.Highlighter.V5",
"Nri.Ui.HighlighterTool.V1",
"Nri.Ui.HighlighterToolbar.V3",
"Nri.Ui.Html.Attributes.V2",