Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda