• Resolved amicalive

    (@amicalive)


    Hi
    I am having an issue with the button. When the menu has been opened and then closed again, the button retains its :hover & :active colours.

    Original state background of #fff and bars of #e04e39,
    Hover/active/open menu state background #e40e39 and X of #fff
    When the menu is closed it should return to the original state, but instead stays with the same colours as if the menu was still open.

    Is there a way to return it to its original state once the menu has been closed?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Peter Featherstone

    (@peterfeatherstone-1)

    Hi there,

    I’ve just checked and it returns the state for me.

    Please advise

    Peter

    Thread Starter amicalive

    (@amicalive)

    Thanks for the speedy reply

    It only happens on mobiles or using Inspect device simulation.
    It seems if you click off the button/click another part of the site it will return to the original state

    I’m still investigating this myself, I believe it may be something to do with the button retaining the Touch state. As I have some javascript that adds touch functionality to the site allowing for hover effects to show.

    Ideally I wouldn’t want to remove this functionality, but I guess I might have to.

    Peter Featherstone

    (@peterfeatherstone-1)

    Hey there,

    That is likely because mobiles don’t really have a proper hover state. When you click on an item on a mobile the hover state stays until you click away from that element so I don’t know if you can do anything about that I’m afraid.

    Mobile devices don’t have a hover state like a desktop does because there isn’t really a notion of hovering on a mobile.

    All the best

    Peter

    Thread Starter amicalive

    (@amicalive)

    Ok
    Thank you for your help 🙂

    Peter Featherstone

    (@peterfeatherstone-1)

    No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Button not releasing active state’ is closed to new replies.