Toggle-tip

Android · iOS · Web
A toggle-tip is an informative message which can contain interactive elements, that a user toggles on and remains visible until the user interacts with it again to dismiss or close it.

Overview

Toggle-tips are small, informative messages that provide additional information when users click on a specific UI element. Toggle-tips are an extended version of Tool-tips that remain visible until the user explicitly closes them. Toggle-tips useful when providing more extensive information that requires the user's attention for a longer duration.

Live demo

Content
Modifiers

Usage

Do

  • Use Toggle-tips for detailed guidance or instructions that demand prolonged attention.

  • Reserve Toggle-tips for situations needing crucial guidance or detailed instructions.

  • Ensure Toggle-tips feature a prominent close button for easy dismissal.

Don't

  • Avoid cluttering the interface with Toggle-tips for trivial or unnecessary information.

  • Don't use Toggle-tips to define terms or expand abbreviations; use tooltips instead.

  • For more extensive or vital content requirements, consider using a modal.


Placement

Toggle-tip directions are set to auto by default, ensuring proper placement. Specific directions (right, left, bottom, or top) can be used.


Alignment

  • The trigger button should be 4px away from the Toggle-tip container, maintaining the same distance regardless of the trigger's size.

  • Centre the button and arrow vertically for clarity.

  • To prevent obstruction, position the trigger arrow to the left, right, or centre.


Content

  • A heading inside a Toggle-tip is not necessary if it does not provide any extra content value. If you are using a heading, ensure it gives additional information rather than repeating or closely matching the trigger text. For example, avoid using “Pay through carsales” as a heading if the trigger is labeled the same. Instead, opt for headings like “How payment through carsales works”.

  • Toggle-tip can contain specified interactive elements, text links and iconclose button.

  • Ensure content is detailed and suitable for prolonged user attention.

  • Use clear, concise, and actionable language within Toggle-tips.


States and interactions

  • The Toggle-tip has two states: active and inactive. By default, it is hidden and inactive.

  • Toggle-tips are displayed on click or tap, and on focus.

  • In keyboard focus state, the trigger Icon should also be in focus.

  • Ensure easy dismissal of Toggle-tips, either by clicking the close button, clicking outside, or pressing the esc key.


Accessibility

  • Ensure keyboard accessibility for triggering and dismissing Toggle-tips.

  • Make Toggle-tips visually distinct for easy readability.

  • Provide alternative text for Icons triggering Toggle-tips, accurately describing their purpose or function.