Brand Band
- HTML/CSS:Dev Ready
- Layout:Responsive
Sections
<div class="slds-brand-band slds-brand-band_large"></div>
Base#
This is the most common use case for the brand band. Our default size is slds-brand-band_medium
. This will give the brand band image a height of 12.5rem or 200px.
The brand band has a gradient fade into the background color of the page. A dark variant of the page background color fades down from the top of the brand band.
<div class="slds-brand-band slds-brand-band_medium"></div>
Brand band sizes#
The brand band comes with 3 sizes — small, medium and large. These will adjust the height of the brand band image.
Small:
<div class="slds-brand-band slds-brand-band_small"></div>
Medium (Default):
<div class="slds-brand-band slds-brand-band_medium"></div>
Large:
<div class="slds-brand-band slds-brand-band_large"></div>
Removing the brand band image#
If you need to remove the brand band image from the component, you can simply pass in slds-brand-band_none
to only display the page background color.
<div class="slds-brand-band slds-brand-band_none"></div>
Using the group background image#
<div class="slds-brand-band slds-brand-band_medium slds-brand-band_group"></div>
Using the user profile background image#
<div class="slds-brand-band slds-brand-band_medium slds-brand-band_user"></div>
Overview of CSS Classes#
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
Selector | .slds-brand-band |
---|---|
Summary | |
Support | dev-ready |
Restrict | div |
Variant | True |
Selector | .slds-brand-band_cover |
---|---|
Summary | Changes background image to be set to cover rather than contain |
Restrict | .slds-brand-band |
Modifier | True |
Selector | .slds-brand-band_small |
---|---|
Summary | Sets height of brand band to |
Restrict | .slds-brand-band |
Modifier | True |
Selector | .slds-brand-band_medium |
---|---|
Summary | Sets height of brand band to |
Restrict | .slds-brand-band |
Modifier | True |
Selector | .slds-brand-band_large |
---|---|
Summary | Sets height of brand band to |
Restrict | .slds-brand-band |
Modifier | True |
Selector | .slds-brand-band_none |
---|---|
Summary | Removes image but keeps page background |
Restrict | .slds-brand-band |
Modifier | True |
Selector | .slds-brand-band_group |
---|---|
Summary | Uses the group banner image as the page background image |
Restrict | .slds-brand-band |
Modifier | True |
Selector | .slds-brand-band_user |
---|---|
Summary | Uses the user profile banner image as the page background image |
Restrict | .slds-brand-band |
Modifier | True |
Brand Band Release Notes
2.19
Fixed
- Fixed base brand band, brand band group and brand band user hardcoded image paths