๐How to style hover, selected, disabled button states
Buttons can have different styles for different states. Here you'll learn how to give them a unique style for their 3 most common states.
Last updated
Buttons can have different styles for different states. Here you'll learn how to give them a unique style for their 3 most common states.
Last updated
In the โEditโ sub-menu open the โDesignerโ card.
Select the button or options buttons you want to style.
Click "+ Sub-Elements".
Select the part of the component you want to style in the Options Selector. It could be "Button" or maybe you want to style the โCheckboxโ. For single Button components, it would be "Whole Thing".
Click "+ Filter".
Select the โWhenโ option that matches the button state you want to style e.g. "selected", โdisabledโ, or โhoverโ.
Any styles you set now, would only be visible when the button has the state youโve chosen.
Easy wasnโt it?! ๐
๐ก For a button to show its disabled style, the button should have been set as disabled. The most common button disabled use is for a โnextโ button to be disabled if the page requirements had not been met. E.g. you need to provide your email address before continuing to the next page. Of course, also the email input should be configured as โrequiredโ.