Q-toggle does not accept custom color



  • I created a custom color variable, as indicated in the documentation, and managed to use it in several components, but in q-toggle it doesn’t work, when I try, it just ignores it.

    boot.js:

    import {colors} from "quasar";
    
    colors.setBrand('mycolor', '#ff4e0f');
    

    quasar.variables.sass:

    $mycolor: #FF4E0F
    
    <q-toggle color="mycolor" keep-color v-model="dark" @input="changeDarkMode" />
    <q-btn label="Test" color="mycolor" />
    

    Anotação 2020-07-16 180129.png


Log in to reply