No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Question: how to remove color effect of button when hovering

    Framework
    2
    2
    4190
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sallar last edited by

      Hi everyone,
      Is there any possibility to remove the color-changing effect of buttons in quasar? With effect I mean that when you hover on a button, its background color changes, and I want to avoid this.
      I already disabled the ripple via “no-ripple” but the effect is still there on hovering.

      Would be glad if someone helped:)

      1 Reply Last reply Reply Quote 0
      • K
        koohsaran70 last edited by

        hi
        These csses are changing the color of elements on hover and focus. you can add the following codes to your page :
        body.desktop .q-focusable:focus .q-focus-helper,
        body.desktop .q-hoverable:hover .q-focus-helper {
        background: inherit;
        opacity: 0;
        }
        body.ios .q-hoverable:active .q-focus-helper {
        background: inherit;
        opacity: 0;
        }
        .q-focus-helper {
        opacity: 0;
        transition: unset;
        }
        use !important if needed

        1 Reply Last reply Reply Quote 4
        • First post
          Last post