question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Brand Band Component

See original GitHub issue
  • Add the Brand Band component as it is in SLDS (gray).
  • Allow styling it to look similar to the Mobile1 Lightning Blue theme (i.e. blue background). This ensures teams are using consistent color values.
  • This is/will be leveraged by Marketing Cloud. Others (i.e. Commerce Cloud, Integration Cloud) will leverage it too but might need to implement this into their system independently of DSR.

Requirements:

Apply the Following CSS Changes to Change Color:

  • element.style is the page background color. For the SLDS example it’s the color of the container.

element.style { background-color: rgb(176, 196, 223); }

.slds-brand-band:before { background-image: url(/assets/images/themes/oneSalesforce/banner-brand-default.png), linear-gradient(to top, rgba(175, 197, 222, 0) 0, #1B5F9E); }

.slds-brand-band:after { background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE); }

End Result:

image

Image is within SLDS npm modules: /node_modules/@salesforce-ux/design-system/assets/images/themes/oneSalesforce.png

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
interactivellamacommented, Aug 27, 2018

@kwilloughby-sf This will go out in the next release.

0reactions
kevinparkersoncommented, Aug 20, 2018

@interactivellama UPDATED prop concept:

/**
 * Content to be injected inside inside the brand band, if any
 */
children: PropTypes.node,

/**
 * CSS classes that are applied to the component
 */
className: PropTypes.oneOfType([
	PropTypes.array,
	PropTypes.object,
	PropTypes.string,
]),

/**
 * Id of component, if desired. If not provided an id is automatically generated
 */
id: PropTypes.string,

/**
 * Image of the brand band
 */
image: PropTypes.oneOf(['default', 'group', 'none', 'user']),

/**
 * Size of the brand band. Default is 'medium'
 */
size: PropTypes.oneOf(['small', 'medium', 'large']),

/**
 * Custom styles to be passed to the component
 */
style: PropTypes.object,

/**
 * Custom styles to be passed to the component
 */
styleContainer: PropTypes.object,

/**
 * Different brand band styling
 */
theme: PropTypes.oneOf(['default', 'lightning-blue'])
Read more comments on GitHub >

github_iconTop Results From Across the Web

Brand Band - Lightning Design System
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...
Read more >
Brand Band - how to make the salesforce default brandband ...
From Setup, enter Themes and Branding in the Quick Find box, then select Themes and Branding. View, preview, and activate an existing theme,...
Read more >
Slds brand band not appearing with custom component in ...
The solution is the following: looks like a bug in lightning out. it is overriding the background image for the brand-band with a...
Read more >
Navbar - Bootstrap
Navbars come with built-in support for a handful of sub-components. ... Adding images to the .navbar-brand will likely always require custom styles or ......
Read more >
Slds-Brand-Band_Large Is Not Working On Force.Com Site ...
The brand band provides theming capability that adds personality and improves information All public supported component props are listed below. In this post...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found