All States
Includes all applicable states (hover, focus, disabled, etc...)
A specific branded pattern, that uses a modal component and behavior stack to serve informational content to a user in context of their actions and browsing.
Key |
Description |
Value |
Token |
---|---|---|---|
1 |
Scrim: Blocking overlay |
#5B5B66/45% |
token unavailable |
2 |
Shape: Background color |
#FFFFFF |
token unavailable |
2a |
Shape: Padding (block, inline) |
Variable |
No token |
2b |
Shape: Margin (block, inline) |
Variable |
No token |
2c |
Shape: Border radius |
20px |
token unavailable |
2d |
Shape: Drop shadow |
0 2px 14px 0 rgba(0, 0, 0, 0.2) |
token unavailable |
2e |
Shape: Position |
absolute, center, center |
token unavailable |
2f |
Shape: Dimension (height, width) |
Variable, 504px |
token unavailable |
3 |
Behavior: Close button (icon) |
cross |
token unavailable |
4 |
Content |
Variable |
No token |
This pattern’s intended uses include onboarding and discovery of features in Firefox.
When using this pattern, reach out to the #content-design team for guidance on content strategy and copy for your specific implementation of this pattern.
Spotlight modal has four available types.
A note on slots: these are placeholders used in our Figma files to make them more flexible. Live examples of this pattern will not include the slots as seen below. We've left them visible in these examples to illustrate where the different Spotlight modal types are the most flexible in terms of layout and content.
Default
Suitable for most use cases. When in doubt use this type.
Full Bleed
Use when you have a widescreen ratio image or illustration.
⚠️ Deprecated: Noodles
Reserved for special uses, typically celebratory in nature (100 Thanks).
Noodles also includes animated shapes between the modal container and the scrim overlay. Guidance for this is forthcoming.
Custom
Only use when the other options aren't suitable or you need very specific or detailed content — be sure to discuss with the Acorn team.
Spotlight modal should animate in on launch, and animate out on dismiss. Additional details on animation specifics to come.
There should be redundant, clear ways to dismiss a Spotlight modal. The following are acceptable, and at least one must present in every Spotlight modal:
Frequency cap
A Spotlight modal can be shown no more than once every 28 days.
Due to the stopping power of this component, content should be clear, descriptive, and have a singular focus (e.g. drawing attention to a new feature, etc.). When in doubt, rely on the overall content guidance in Acorn.
Button labels should be clear and contextual to the primary action.
Write content that introduces new features or informs users of high-value changes made to Firefox (e.g. introducing picture-in-picture).
Use the spotlight modal to advertise Mozilla products or services. The spotlight modal is not a place to sell add-on services, subscriptions, or ask for donations.
Accessibility guidance coming in the future. Please reach out to #accessibility on Slack with any specific questions.
Date |
Version |
Notes |
---|---|---|
Jul 12, 2023 |
1.0.0 |
Initial draft of spotlight modal guidance |
Overview of this pattern's status.
All States
Includes all applicable states (hover, focus, disabled, etc...)
All Themes
Works properly across all themes (theme name, theme name, etc...)
All Modes
Works properly across all modes (light, dark, high contrast)
All Desktop Environments
Works properly across all environments (Windows, MacOS, Linux)
All Mobile Environments
Works properly across all environments (iOS, Android)
Overall Accessibility
Has been tested and reviewed by A11y Team.
Color / Accessibility
All color has been tested against and passed all the latest WCAG 2.1 A & AA standards.
Text / Accessibility
All text has been tested against and passed all the latest WCAG 2.1 A & AA standards.
Contrast / Accessibility
All contrast has been tested against and passed all the latest WCAG 2.1 A & AA standards.
Interaction / Accessibility
All interactions have been tested against and passed all the latest WCAG 2.1 A & AA standards.
Content Design Review
Has been tested and reviewed by Content Design Team.
Writing Guidelines
Follows guidance for writing and language use.
Localization
Works properly across locales, and includes guidance for RTL languages.
Defined Behavior
Guidance for behavior when interacted with.
Defined Interactions
Guidance for interaction capabilities, ie. keyboard interactions.
Usage Guidelines
Includes guidance for usage, dos and don'ts, best practices.
Tokens
All attributes are available as tokens.
Figma Library
Has a reusable Figma component.
Storybook
Is documented in Storybook.
Code
Has a code counterpart.