Navigation

    Quasar Framework

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

    how to use linear-gradient in an array of colors

    Framework
    2
    4
    29
    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.
    • D
      deer last edited by

      I actually faced a problem regarding creating customized checkbox. I created different checkboxes with different background color now I want to make one of my checkboxes to have multiple colors with linear-gradient.I don’t know how to give that value to my checkbox. In this code you can see I try to give the fourth checkbox a linear-gradient value but it seems the app can not distinguish that. Can you please help me how to solve this issue?
      Thanks in advance for your help.

      I 1 Reply Last reply Reply Quote 0
      • I
        Ilia @deer last edited by

        @deer Did you check this part of code? Is hash sign concatenating with linear-gradient?Screen Shot 2021-02-25 at 8.45.21 AM.png

        D 1 Reply Last reply Reply Quote 0
        • D
          deer @Ilia last edited by deer

          @ilia I changed that via ternary operator & defining new variable , but still it does not work.Here is the Link
          But it still does not work!

          I 1 Reply Last reply Reply Quote 0
          • I
            Ilia @deer last edited by

            @deer Do css instead 🙂

            https://codepen.io/pikil/pen/BaQxKmj

            .q-checkbox.ch-grad .q-checkbox__inner .q-checkbox__bg {
              background: linear-gradient(90deg,#f24949 25%,#f2cf00 0,#f2cf00 50%,#8bd12a 0,#8bd12a 75%,#36c 0);
            }
            
            1 Reply Last reply Reply Quote 1
            • First post
              Last post