Pixate: ¿Cómo cambiar el color de fondo de la pestaña seleccionada?

StackOverflow https://stackoverflow.com//questions/25025952

  •  21-12-2019
  •  | 
  •  

Pregunta

¿Qué CSS debo usar para cambiar el color de fondo del UITABBARITIM seleccionado usando PIXATE?

He intentado esto, y no parece funcionar.

tab-bar-artículo: seleccionado {

Color de fondo: gris;

}

¿Qué estoy haciendo mal?

¿Fue útil?

Solución

Por alguna razón, tuve que usar "Selección de la barra de pestañas"

También tuve que establecer el tamaño de fondo en algo razonable para que funcione.No sé si este es el camino, pero funciona para mí.

tab-bar {
    background-color: red;
    selected-color: white;
}
  tab-bar-item {
    color: green;
    font-family: Arial;
    font-size: 12px;
  }

  tab-bar-item:selected {
    color: purple;
  }

tab-bar selection {
  background-size:64px 48px;
  background-color: linear-gradient(red,yellow);
  box-shadow: inset 0px 2px 2px rgba(0,0,0,.2);
}

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top