Forum Discussion
Is it possible to create custom Hover, Selected, and Visited states in a tab interaction?
FYI, and for anybody that finds this, every function you describe is built into the predefined states. That means if you use the names in the built-in drop-down list, you don’t need to create those actions. They come with the states, with two caveats.
1. To get the Selected state to turn off when another is clicked, they have to be part of a button set. In a set, only one can be selected at a time.
2. You wrote:
When the user hovers, the button state should change to HoverState, if the button is in Normal or VisitedState.
If you are willing to have the hover state show any time the cursor hovers over the object, that is built into the hover state. If you actually mean you want it to change only if it is in Normal or Visited, you have to create that action. WARNING: if you create your own triggers and actions, you MUST use a name for the state other than Hover. Writing your own triggers that duplicate the actions of the built-in actions can lead to strange, unpredictable, and seldom desirable results. If you have, indeed, created your own triggers, that may be the problem with the hover state. If not, follow Sandeep’s suggestion.
Related Content
- 12 months ago