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

    Q-Tabs to use Bold font

    Framework
    2
    2
    831
    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.
    • K
      keechan last edited by

      Hi guys,

      I am trying to make the active tab to have bold font (and/or customized background color).

      For simplicity, I first tried to use text-weight-bold for q-tabs and style="font-weight: bold !important" for q-tab. But it doesn’t make the font bold.

      <q-tabs
              v-model="tab"
              class="bg-orange text-white shadow-2 text-weight-bold"
            >
              <q-tab name="mails" label="Mails" style="font-weight: bold !important"></q-tab>
              <q-tab name="alarms" label="Alarms"></q-tab>
              <q-tab name="movies" label="Movies"></q-tab>
      </q-tabs>
      

      Any idea how to make it bold? Then I will just handle making it bold when active.

      Fiddle:
      https://codepen.io/keechan/pen/WNxywOO

      Thanks!!

      metalsadman 1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman @keechan last edited by metalsadman

        @keechan inpect element and target the class .q-tab__label ie.

        .bold-tabs
          .q-tab__label
            font-weight: bold
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post