0

How can I modify the size of an Icon in lightning-helptext?

My code:

<lightning-helptext content={errorLabel} 
icon-variant="error" class="slds-p-right_small" 
icon-name="utility:warning" size="large" if:true={test}>
</lightning-helptext>

I tried either size="large" property and aplying custom CSS on class property, and I cannot resize the icon.

2 Answers 2

2

You can't, this component does not have any property (or at least documented) that allows you to do this.

Instead, use the blueprints to create your own help text and icon

1
  • Thank you! I'll do it.
    – CPS
    Feb 17, 2022 at 8:28
0

Try to use css hooks:
:host {
--lwc-squareIconMediumContentAlt: 1.25rem;
--lwc-squareIconMediumContentAlt: 1.25rem;
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .