Patch changes:
- defaults mobile-specific alignment and direction to the non-mobile version, rather than top and middle
- adds onTopForQuizEngineMobile, onBottomForQuizEngineMobile, onLeftForQuizEngineMobile, onRightForQuizEngineMobile
- adds onTopForNarrowMobile, onBottomForNarrowMobile, onLeftForNarrowMobile, onRightForNarrowMobile
- adds alignStartForQuizEngineMobile, alignMiddleForQuizEngineMobile, alignEndForQuizEngineMobile
- adds alignStartForNarrowMobile, alignMiddleForNarrowMobile, alignEndForNarrowMobile
- adds narrowMobileCss
- use internal
Content module - adds
paragraph and markdown support - add partially-transparent white border around tooltips
- Use Nri.Ui.WhenFocusLeaves.V2
- prevent default and stop propagation on click for disclosure tooltips
Changes from V2:
- Support
disclosure pattern for rich-content tooltips - render tooltip content in the DOM when closed (now, they're hidden with display:none)
- tooltips MUST be closable via keyboard without moving focus. Understanding Success Criterion 1.4.13: Content on Hover or Focus
- remove onClick helper
- prefer the accessible name to using aria-labelledby and aria-label together
- :skull: remove customTooltipAttributes
- change
css to extend the current list of styles, NOT override them entirely. - fix spelling of "auxillary" to "auxiliary"
- toggleTip -> viewToggleTip
- Adds notMobileCss, mobileCss, quizEngineMobileCss
- onHover -> onToggle
These tooltips aim to follow the accessibility recommendations from:
Here's what the fields in the configuration record do:
trigger: What element do you interact with to open the tooltip?id: A unique identifier used to associate the trigger with its content