Pseudo States Don't Clear When Opening New Menu

I found a bug (I hope it is)

  • Have a :Hover on a button.
  • Click that button that animates a Visual Element in front of it (that should be blocking all interactions to the button below it) and animate in another menu
  • The hover state doesn’t deregister from the button even when moving mouse off and clicking around.

wbui3w

.button-hover-grow-animation {
    transition-duration: var(--button-hover-animation-duration);
    transition-property: scale;
    transition-timing-function: var(--button-hover-animation-timing);
}

.button-hover-grow-animation:hover {
    scale: var(--button-hover-grow-animation-scale);
}

Hi! Can you report a bug from Unity please? Thanks in advance

Case: 1359408

2 Likes

QA says this is not a bug, and I am very confused. I have my credits and settings panel set to Sort Order of 1 so that it appears over the main menu (default panel settings) at Sort Order 0. Shouldn’t the button lose the hover state then if it cannot receive mouse input?

Or is this how it works and you just have to manually remove mouse input from any currently hovered UI when a modal/menu is set over it?

“We have found the cause of the issue. In Panel Settings “Credits and Settings” the Sort Order was set to 1 and in the “Default Panel Settings” the Sort Order was set to 0. This means “credits” UI went over “level-select” and that blocked mouse inputs to the “level-select”. When the Sort Orders are set to equal values the issue is gone.”

Thanks!

@MousePods Please reply to the e-mail you received when the case was closed by QA, so that the additional concerns are added to the case. The case will be reopened and I’ll make sure it bubbles up to a dev.

1 Like

Done

1 Like