NoRedInk/noredink-ui/22.7.0

NOTE: the latest version is 35.9.3

Nri.Ui.HighlighterToolbar.V2

Bar with markers for choosing how text will be highlighted in a highlighter.

{ focusAndSelect :
{ select : Maybe tag
, focus : Maybe String
}
-> msg
, getColor :
tag -> { extras | colorSolid : Color, colorLight : Color }
, getName : tag -> String
, highlighterId : String
}
-> { model | currentTool : Maybe tag, tags : List tag }
-> Html msg

View renders each marker and an eraser. This is usually used with a Highlighter.

Patch changes:

  • Ensure selected tool is clear in high contrast mode

Changes from V1:

  • replaces onChangeTag and onSetEraser with focusAndSelect.
  • adds highlighterId to config
  • adds keyboard navigation