Option for Action Buttons Displayed as Images
M
Matt Hall
Currently, you can set links to display as a button OR an image. I want to display an action, or link, as an image and have that entire image serve as the button.
Use case: We currently have a home page on our portal that uses the card layout for url links to other pages. The cards display an image and then a link displayed as a button. The button isn't all that appealing to the eye and adds clutter, so we would love it if the image itself could also serve as the button.
Z
Z
Matt Hall Its not supported but you may be able to do this with CSS - see below how I do it to change all my salesforce links in field buttons to the Salesforce Logos - hope this helps!
.stk-button-fieldButton[href^="https://companyname.lightning.force.com/"] {
background-image: url('{SalesForceLogoSVG}');
background-repeat: no-repeat;
background-size: 100px auto; /
Set the SVG width to 50px
/background-position: center; /
Center the SVG
/background-color: transparent;
color: transparent;
border: none;
transition: opacity 0.3s; /
Smooth transition for hover effect
/}