timsar
1
my tabs icon has default opacity 0.7
i was trying to set opacity by sass variable but i got error:
overloaded function 'rgba' give wrong number of arguments
$colors: (
primary: rgb(254, 79, 26),
secondary: rgb(100, 100, 100)
);
$tabs-tab-color-inactive: color($colors,secondary,1);
also i think opacity will not change if this sass would be ok.
Do you mean the opacity for the android platform? You can use this sass variable in your theme/variables.scss to change the opacity:
$tabs-md-tab-opacity: 1;
timsar
3
$tabs-md-tab-opacity: 1;
thank you.it’s worked on android and ok for now.
but what about define colors in sass as rgba, how to do that.
in this way it will work:
$color(
secondary: rgb(27,224,63);
...
)
$tabs-tab-color-inactive: color($colors,secondary);
$tabs-md-tab-icon-color: rgba($tabs-md-tab-color-inactive, $tabs-md-tab-opacity);
but if i use $colors directly it wont work:
$color(
secondary: rgb(27,224,63);
...
)
$tabs-md-tab-icon-color: rgba(($colors,secondary), $tabs-md-tab-opacity);
does not work.