Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

191
Vistas
How to change font color of button icons for trix text editor toolbar

I would like to change the color of the font color for the button icons.

I tried the following with sass:

trix-toolbar
  .trix-button
    background-color: $purple-dark-2
    color: $white

It changes only the backgrond color like so:

enter image description here

I only found different fiddles on how to add new buttons in the toolbar. These two looked the most promising to me:

https://codepen.io/souporserious/pen/dYZVYo?editors=100

https://jsfiddle.net/34sd91hv/

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I found out that they use material icons and one can replace them: https://github.com/basecamp/trix/issues/464

Something like this regarding your paths will work as well:

trix-toolbar
  .trix-button--icon-bold::before
    background-image: url('../images/icon/baseline_format_bold_white_24dp.png')

the snippet is in sass you can convert to css or scss and even use .svg files.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda