Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

295
Views
Next js - not able to override the styles from component library using scss

This post is originated from the post

I'm using react-simple-keyboard and I try to override below style(class:react-simple-keyboard) 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

but not working

From the comments I've got from the post, I even try

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

but not working.

It throws error

 Selector ":global(.react-simple-keyboard)" is not pure (pure selectors must contain at least one local class or id)

Update 1
I try to add the class to global.css and it works, just wondering if I can do it in keyboard.module.scss

_app.tsx

import "../styles/globals.css";
...
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!