-
Notifications
You must be signed in to change notification settings - Fork 42
Lightbox media viewer
Decorator
UI component
The Lightbox media viewer opens up a piece/series of content over the current page for a closer/detailed look. The background is dimmed to give focus to the content being interacted with. It's great for slideshows and galleries, or anywhere you might not have a lot of room to see the piece of media content in detail.
Table of contents
Back links (15)
CTA (4)
- Lightbox media viewer's content if not provided, and launches within...
- ...link type is clicked, it should launch the Lightbox media viewer and begin playing the video.
- The Lightbox media viewer's data model and component should be used
- addition to the style chosen from below. See Lightbox media viewer
Card (1)
- Re-evaluate Lightbox media viewer
1.0.1
|onClick && 4.0.2
| Launches the Lightbox media viewer 4 if...- ...|
4.0.2
| String of text is passed to Lightbox media viewer's' 4... - button icon is displayed only if the Lightbox media viewer
- ...|
false
|default
disables the the use of Lightbox media viewer - See Lightbox media viewer for more
Video (5)
- Lightbox media viewer. Video allows custom override of all content...
- .../>
Lightbox
opens Lightbox media viewer 3. - ...| if
string
provided | Pass thestring
to Lightbox media viewer to overrideheading
- ...| if
string
provided | Pass thestring
to Lightbox media viewer to overridecopy
- See Lightbox media viewer for more
event | description |
---|---|
onOpen | Sets the Media Viewer's initial state. Start with the first piece of media unless otherwise specified. |
onClose | Reset state of Media Viewer. (e.g. stop playing videos) |
required
component
The Expressive modal wraps the Viewer 2 or Carousel 3 content to be viewed, dims the background, and ultimately launches the experience based on a user's interaction.
See Expressive modal for more information
The viewer contains all the details for a given media object being viewed. It
presents a large piece of media to be viewed with supporting heading
and
copy
to provide the user with more information about what they are looking at.
See design specs r1 for more information
required
component
Renders an Image or Video depending on what the adopters passes.
Condition | Description | |
---|---|---|
2.1.1 |
Image | If an Image is provided, render it as the main media piece. |
2.1.2 |
Video ID
|
If a Video ID is provided use the Video service to get Video data and render |
optional
string
Condition | Description | |
---|---|---|
2.2.1 |
undefined (default) |
heading is pre-filled by Video service's name if provided. |
2.2.2 |
String provided |
Adding a custom heading overrides any API call. |
optional
string
Condition | Description | |
---|---|---|
2.3.1 |
undefined (default) |
copy here is pre-filled by Video service's description if provided. |
2.3.2 |
String provided |
Adding a custom copy overrides any API call. |
optional
string
This section outlines how the combined content of heading
2.2, and copy
2.3 behave
together.
Condition | Description | |
---|---|---|
2.4.1 |
y-overflow |
If content exceeds the height of the viewer area then handle the overflow of content with scrolling and a gradient above and below. |
2.4.3 |
y-overflow sm
|
No overflow needed at the small breakpoint if Carousel 3 isn't being used |
2.4.2 |
y-overflow sm Carousel 3
|
If Carousel 3 is included at the smallest breakpoint then the above [2.4.1] overflow is still in effect. |
See design specs r1 for more information
optional
component
The Carousel component can be included to help view, and navigate between one or more pieces of media content.
Condition | Description | |
---|---|---|
3.1 |
2 or more media 2.1
|
Carousel renders wrapping multiple viewer 2 to navigate through. |
3.2 |
1 or less media 2.1
|
Carousel does not render. |
Publishing guidelines (6)
Layout component (37)
- CTA block
- CTA section
- Callout media
- Callout quote
- Callout
- Card group
- Card section carousel
- Card section images
- Card section offset
- Card section simple
- Card section
- Content block cards
- Content block horizontal
- Content block media
- Content block mixed groups
- Content block segmented
- Content block simple
- Content block
- Content group banner
- Content group cards
- Content group pictograms
- Content group simple
- Content group
- Content item horizontal
- Content item
- Content section
- Dotcom shell
- Feature section
- Lead space block
- Lead space search
- Lead space
- Link list section
- Logo grid
- Table of contents
- Tabs extended media
- Tabs extended
- Universal banner
Service (3)
UI component (34)
- Back to top
- Background media
- Button group
- CTA
- Card in card
- Card link
- Card
- Carousel
- Expressive modal
- Feature card
- Filter group
- Filter panel
- Footer
- Image with caption
- Image
- Input select
- Leaving ibm
- Lightbox media viewer
- Link list
- Link with icon
- Locale modal
- Masthead L0
- Masthead L1
- Masthead account
- Masthead mobile
- Masthead navigation
- Masthead
- Mega menu
- Pictogram item
- Quote
- Search typeahead
- Tag group
- Tag link
- Video