Skip to main content
Question

Issue with mask breaking when component resizes

  • October 16, 2024
  • 0 replies
  • 75 views

Lauren_Medved

I have a button component with a bunch of different variants. One variant is a Disabled state where I have added a color mask to make the icons look disabled. Our icons come in a variety of colors and this has been the only guaranteed way to make sure all of the colors appear the same when disabling and then returning to normal when enabling.

The issue I’m running into is when we want to resize the icon within the button, the mask breaks. This is frustrating because icons in our software do occur in many sizes but for some reason I cannot use a mask in this component unless the icon is the default size.

For reference on what’s occurring, here are some images.

Expected behavior when our default sized icon goes from its neutral state to disabled:


Buggy behavior when the icon increases in size using a nested component. The resize occurs like normal for all states except the one that requires a mask (Disabled). Instead there is no resizing AND the mask is now broken.


This is how the mask is set up in the original component:

I believe this is a bug because my other states that don’t use a mask all work as anticipated.

This topic has been closed for comments

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings