i am using lightning-icon and i want to decrease the size of it.

<lightning-icon icon-name="action:approval" size="xx-small"></lightning-icon>

The smallest size is xx-small, and i can't seem to make it any smaller. I tried modifying it in css, but it decreased only the background of the icon, without the icon itself.

How can i decrease the size of it?


You can add class and give appropriate padding to adjust reduce the icon within its container


<lightning-icon class="my-icon-style" icon-name="action:approval" size="xx-small"></lightning-icon>


.my-icon-style {
    padding: 0.1rem;
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.