Fix spelling of auxiliary

This commit is contained in:
Tessa Kelly 2022-05-02 09:54:14 -07:00
parent 8fbc51b555
commit 1971ae8d2f
5 changed files with 18 additions and 16 deletions

View File

@ -5,7 +5,7 @@ module Nri.Ui.Tooltip.V1 exposing
, Padding(..), withPadding
, withTooltipStyleOverrides
, Trigger(..)
, primaryLabel, auxillaryDescription, toggleTip
, primaryLabel, auxiliaryDescription, toggleTip
)
{-| A tooltip component!
@ -51,7 +51,7 @@ Example usage:
## View Functions
@docs primaryLabel, auxillaryDescription, toggleTip
@docs primaryLabel, auxiliaryDescription, toggleTip
-}
@ -215,7 +215,7 @@ primaryLabel =
{-| Used when the content of the tooltip provides an "auxillary description" for its content.
-}
auxillaryDescription :
auxiliaryDescription :
{ trigger : Trigger
, triggerHtml : Html msg
, extraButtonAttrs : List (Attribute msg)
@ -225,7 +225,7 @@ auxillaryDescription :
}
-> Tooltip msg
-> Html msg
auxillaryDescription =
auxiliaryDescription =
viewTooltip_ AuxillaryDescription

View File

@ -12,7 +12,7 @@ module Nri.Ui.Tooltip.V2 exposing
, css, containerCss
, custom, customTriggerAttributes
, nriDescription, testId
, primaryLabel, auxillaryDescription
, primaryLabel, auxiliaryDescription
)
{-| Known issues:
@ -40,7 +40,7 @@ Changes from V1:
- adds plaintext, html helpers for setting the content
- pass a list of attributes rather than requiring a pipeline to set up the tooltip
- move Trigger into the attributes
- change primaryLabel and auxillaryDescription to attributes, adding view
- change primaryLabel and auxiliaryDescription to attributes, adding view
- move the onTrigger event to the attributes
- extraButtonAttrs becomes attribute `customTriggerAttributes`
- isOpen field becomes the `open` attribute
@ -77,7 +77,7 @@ Example usage:
@docs css, containerCss
@docs custom, customTriggerAttributes
@docs nriDescription, testId
@docs primaryLabel, auxillaryDescription
@docs primaryLabel, auxiliaryDescription
-}
@ -450,8 +450,8 @@ primaryLabel =
{-| Used when the content of the tooltip provides an "auxillary description" for its content.
-}
auxillaryDescription : Attribute msg
auxillaryDescription =
auxiliaryDescription : Attribute msg
auxiliaryDescription =
Attribute (\config -> { config | purpose = AuxillaryDescription })

View File

@ -12,7 +12,7 @@ module Nri.Ui.Tooltip.V3 exposing
, css, containerCss
, custom
, nriDescription, testId
, primaryLabel, auxillaryDescription, disclosure
, primaryLabel, auxiliaryDescription, disclosure
)
{-| Changes from V2:
@ -24,6 +24,7 @@ module Nri.Ui.Tooltip.V3 exposing
- 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"
These tooltips aim to follow the accessibility recommendations from:
@ -43,7 +44,7 @@ These tooltips aim to follow the accessibility recommendations from:
@docs css, containerCss
@docs custom
@docs nriDescription, testId
@docs primaryLabel, auxillaryDescription, disclosure
@docs primaryLabel, auxiliaryDescription, disclosure
-}
@ -406,8 +407,8 @@ An auxillary description is used when the tooltip content provides supplementary
e.g. when the trigger content is a word in the middle of a body of text that requires additional explanation.
-}
auxillaryDescription : Attribute msg
auxillaryDescription =
auxiliaryDescription : Attribute msg
auxiliaryDescription =
Attribute (\config -> { config | purpose = AuxillaryDescription })

View File

@ -309,6 +309,7 @@ buildRadioOptions options currentlyHovered content =
Nothing
)
)
, Tooltip.auxiliaryDescription
]
else

View File

@ -156,7 +156,7 @@ view ellieLinkConfig model =
, view = viewPrimaryLabelTooltip model.openTooltip
, tooltipId = PrimaryLabel
}
, { name = "Tooltip.auxillaryDescription"
, { name = "Tooltip.auxiliaryDescription"
, view = viewAuxillaryDescriptionToolip model.openTooltip
, tooltipId = AuxillaryDescription
}
@ -196,7 +196,7 @@ viewPrimaryLabelTooltip openTooltip =
viewAuxillaryDescriptionToolip : Maybe TooltipId -> Html Msg
viewAuxillaryDescriptionToolip openTooltip =
Tooltip.view
{ id = "tooltip__auxillaryDescription"
{ id = "tooltip__auxiliaryDescription"
, trigger =
\eventHandlers ->
ClickableSvg.button "Period 1"
@ -206,7 +206,7 @@ viewAuxillaryDescriptionToolip openTooltip =
]
}
[ Tooltip.plaintext "Manage class and students"
, Tooltip.auxillaryDescription
, Tooltip.auxiliaryDescription
, Tooltip.onHover (ToggleTooltip AuxillaryDescription)
, Tooltip.open (openTooltip == Just AuxillaryDescription)
, Tooltip.smallPadding