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

    Disable hover effect on all elements like, select, input, button

    Help
    3
    6
    1553
    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.
    • R
      raghees last edited by

      I am trying to remove hover effect on all the elements through the following code, it only worked for the button. Is there any option to remove all hover effect of the specific element or all the elements.

      body.desktop .q-focusable:focus .q-focus-helper,
      body.desktop .q-hoverable:hover .q-focus-helper {
        background: inherit !important;
        opacity: 0 !important;
      }
      
      body .q-field .q-field__control .q-hoverable:hover {
        background: inherit !important;
        opacity: 0 !important;
      }
      
      dobbel beets 2 Replies Last reply Reply Quote 0
      • dobbel
        dobbel @raghees last edited by

        @raghees

        I am not skilled enough in Quasar’s CSS to come up with a generic way to remove all hover effects from all components…maybe @metalsadman or @beets has an idea?

        You could look into changing some sass global hover variables:
        https://quasar.dev/style/sass-scss-variables

        1 Reply Last reply Reply Quote 0
        • beets
          beets @raghees last edited by

          @raghees I think @dobbel’s suggestion is probably best if you want to disable all transitions:

          In quasar.variables.sass:

          $generic-hover-transition: none
          

          If it doesn’t work then we can try something else.

          1 Reply Last reply Reply Quote 0
          • R
            raghees last edited by

            thanks @dobbel and @beets

            1 Reply Last reply Reply Quote 0
            • R
              raghees last edited by

              I am using quasar-plugin for vue-cli and not using qusar-cli. will it work there as well?

              dobbel 1 Reply Last reply Reply Quote 0
              • dobbel
                dobbel @raghees last edited by

                @raghees

                I applied the suggested @beets sass var. But It did not remove any hover effects.

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