You need to sign in to do that
Don't have an account?
Rajesh Kumar SF
How to display same logo inside the lightning component in different shape on different pages i.e. Home page,record page etc.
I created one lightning component, inside the component i have logo and some content, Now bussiness requirment is that whenever this component being display on different pages like home page, chatter, record page etc. then i want to change only shape of the logo as circular, rectanguler, polygonal etc.
You can set different shapes to the logos using the slds(Salesforce Lightning Design System). There you will a variety of
icons that you can use in your component. In order to give shape to your logo, you can use the following classes from the
SLDS.
".slds-avatar_circle"
This makes the logo in circular shape and if you will use "slds-avatar" it will simply show it to you in square shape
which is the default one.
Please refer to the following link as you can explore a whole lot more about the classes:
https://www.lightningdesignsystem.com/components/avatar/#site-main-content
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha