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

    changing color of label in q-input

    Framework
    3
    3
    1794
    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.
    • P
      priya last edited by

      Hi,

      I am using the latest quasar framework. I want to change the colour and font size of the stacked label in a q-input field.
      Changing the in the css doesn’t seem to take effect. Any local styling apply only to the input text and not to the label.
      how to solve this problem?

      Thanks,
      Priya

      1 Reply Last reply Reply Quote 0
      • S
        stuartcusack last edited by stuartcusack

        I can’t see an easy way to do it using component properties, so this is what I am using instead:

        .q-if-label {
            color: #FFF;
        }
        
        .q-if::before {
           border-color: #FFF;
        }
        
        1 Reply Last reply Reply Quote 0
        • Hawkeye64
          Hawkeye64 last edited by

          Don’t use a scoped style. However, if you do this, then all labels in all your q-inputs will be affected. If you give your q-inputs an id then you can do it scoped.
          Here’s an example for q-table:

            #alerts .q-table thead,
            #alerts .q-table tr,
            #alerts .q-table th,
            #alerts .q-table td {
              height: 24px !important;
            }
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post