I want to enable a button once inputs have been entered.
If I have a conditional to set the button to not clickable when the input is empty, the button is initially displayed as clickable on page load and then is set unclickable.
If I define the button as unclickable to start with, and have a conditional to set the button to clickabe when the input has a value, the button displays correctly as unclickable on page load, and is set to clickable correctly when the input has a value, but the hover state doesn’t work.
To Rafael’s point, there must be something else going on because I just took a quick look at an unclickable button, and the hover state works as expected.
I don’t want a hover state when the button is not clickable. I kind of thought that “not clickable” would add the “disabled” attribute to the button.
When the condition I have added is satisfied, i.e. the inputs have been entered and the button is made clickable, then the hover effects defined in the Primary Button should be applied.
This is the conditional, with the button appearance initially set to “isn’t clickable”