Expand panel
Box with content with an expandable panel below for extra information
Overview
The expand panel is a box that you can put anywhere on a page. It opens up a larger panel below for more information.
Live demo (For Proximus employees)
Anatomy
Here is a quick overview of what an expand panel contains to better understand this documentation:
- Icon or visual (optional) Always at the top, before any other content. Visual is for logos, apps.
- Title
- Subtitle (optional)
- Content (optional)
- Price (optional)
- Buttons Always come last in the media box. You can use a primary, secondary and/or a tertiary button
- Expand button It comes just below the box and allows to open up a panel.
- Panel expanded A large box that usually takes the whole grid. It contains any desired information and opens up just below the expand panel.
- Close button Revealed once the expand panel is opened. Always comes on the upper right corner of the panel.
Composition
Expand panel with a background image
The visual is the background of the box and doesn't impact the expanded panel below. You can put the copy content in a gridding to give space for the visual in desktop. In mobile you can either delete the background visual or add extra space below the content to give space for the visual. For this display, use the template name-2010-pe-bg-img.
Options
Icon as a content visual
As seen just before in the anatomy part, you can use a small visual instead of an icon in the box. It always comes at the top of the box. The size of your visual won't be resized so make sure you create a visual with reasonable dimensions: not too big, not too tiny. This space is reserved for logos or apps logos. For this display, use the template name-yymm-panel-content-img as guidance.
Content visual in the expanded panel
You can also put a visual in the opened panel just below. For this display, use the content visual template name-2010-content.
Gridding
The composition options are based on our default grid. Please refer to the gridding article for more information.
You can have a maximum of 4 expand panels per row in desktop.
In mobile you can only use one per row on a grid 12 or else the content is too narrow.
Accessibility
In this component, HTML elements are added on top of the image. This content is in positive or negative mode and this affects the creation of the image. Image colors should be carefully considered, with legibility and accessibility as paramount concerns.
Our websites and applications have to be accessible, meaning perceptible, operable, understandable and robust for users with disabilities. Discover here our accessibility guidance.
The visual presentation of text has a contrast ratio of at least 4.5:1. Success criterion 1.4.3 Contrast
Positive mode
Negative mode
Best practices
Respect the margins and safe areas in the template and make sure that the main content isn’t placed behind the title, copy or else (e.g.: main character, faces, devices, objects).
Don't
Do
How to
Please use the template and respect the following guidances:
- Use the needed expand panel template (cf usage > compositions)
- Adapt the height of your template according your expand panel height online. It should be the height of the entire box, expand button included. If you don't resize the height of the template, margins and safe areas will not be accurate!
- Choose the artboard according to the gridding of your expand panel (only for desktop since there's only one possible gridding for mobile).
- In your template, define the copy gridding in desktop if needed and place the important subject of your visual accordingly. In mobile you can't place your copy in a specific gridding.
- Produce other visuals if needed such as the box content visual or the expand content visual.
- People's faces are not behind the text or the patch.
- Test your visuals and adapt if needed
- Make sure your visuals are not too heavy and compress if needed.
You're part of Proximus organization? Go to the template - If not, request it
Technical specifications
Sizes are for reference and guidance, note that they may change with the content or gridding. But in most case refer to the following specifications when you export the images:
Expand panel with a background image
Breakpoints | Size | Max weight | Format |
---|---|---|---|
Mobile (-s) | 590x? (height depends on content) | 80KB | .jpg |
Tablet & Desktop (-m) | Depending on the gridding and content | 80KB | .jpg |
Icon as a content visual
Sizes may vary but try to respect the height if possible to avoid having big visuals since it's not the place to put all kinds of visuals.
Breakpoints | Size | Max weight | Format |
---|---|---|---|
Mobile (-s) | ?x36px (width depends on your kind of visual) | 10KB | .png or .jpg |
Tablet (-m) | ?x44px (width depends on your kind of visual) | 10KB | .png or .jpg |
Desktop (-l) | ?x52px (width depends on your kind of visual) | 10KB | .png or .jpg |
To ensure good UI quality and website performances, it's very important to respect the maximum weight indicated while keeping a correct image quality. Discover here our images compression recommendations.
Naming convention
When exporting your visuals, make sure you use the correct naming. Do not use caps, spaces, accents or symbols (except a dash - ) Please respect the following naming convention:
- Name Description of the visual, campaign or page
- Date yymm = year month (2108 = August 2021)
- Component pe (=panel expand)
- Gridding (optional) gX (=number of grids your media box takes)
- Composition bg (=background) or content
- Image
- Breakpoint mobile (-s) or desktop (-m)
- Language (optional) English by default (-en), French (-fr), Dutch (-nl). If it exists in only one language, it isn't mandatory to specify.
Images testing
Testing your image(s) is an important step of the images creation. It allows you to test the behavior in all breakpoint and to ensure the quality of the end results.
Discover here our images testing recommendations