Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic 2 buttons not mapping color variables

$
0
0

Hi, i'm trying to use a custom color for an ion-item but putting the attribute doesn't change the style of the item, tried changing to a button but nothing, then tried changing to an already provided color like danger but nothing.

At this point i will have to mess with ionic-framework code to see where's the issue, currently using ionic alpha.42 that needs this kind of mapping, the color works say for the navbar but not for buttons:

$colors: (
  primary:    #009688,
  primaryDisabled:   #00665C,
  secondary:  #387ef5,
  danger:     #f53d3d,
  light:      #f4f4f4,
  dark:       #222,
  favorite:   #69BB7B
);

$colors-md: (
  primary:    map-get($colors, primary),
  primaryDisabled:    map-get($colors, primaryDisabled),
  secondary:  map-get($colors, secondary),
  danger:     map-get($colors, danger),
  light:      map-get($colors, light),
  dark:       map-get($colors, dark),
  favorite:   map-get($colors, favorite)
);

$colors-ios: (
  primary:    map-get($colors, primary),
  primaryDisabled:    map-get($colors, primaryDisabled),
  secondary:  map-get($colors, secondary),
  danger:     map-get($colors, danger),
  light:      map-get($colors, light),
  dark:       map-get($colors, dark),
  favorite:   map-get($colors, favorite)
);

Viewing all articles
Browse latest Browse all 228595

Trending Articles