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

227
Vistas
Next js - how to override style in scss

I'm using react-simple-keyboard and I try to override below style from this library
enter image description here

by using scss

keyboard.module.scss

.react-simple-keyboard{
  width: 50% !important;
}

components/keyboard/index.js

import keyboardStyle from "./keyboard.module.scss";
...
// Do something using keyboardStyle

However, I've found there's no update on the style.

I've tried something like

.react-simple-keyboard :global{
  width: 50% !important;
}

but still not working
How can I do it?

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

0

I don't think you are using the CSS modules correctly. The way you do it is like this:

whatever.module.css

.something {
  color: red;
}

some.tsx

import styles from "./whatever.module.css"
<Component className={styles.something}/>

The fact that you are using dashes ("-") makes me think that you don't use this properly, as you can't use dashes in an object property name.

If you did apply the styles correctly, and it still doesn't work, try using this class in the global css file - .simple-keyboard

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