In order to display emoji icons in my Next.js App, I utilize the Twemoji library. These emojis are rendered as
<span><img></span>
elements in the final HTML output. To customize their default width and height, I use the !important
rule in my globals.scss file:
.customize {
top: 88%;
right: calc(50vw - (52.2px + 3rem));
button {
span img[style]{
width: 35px !important;
height: 35px !important;
}
}
}
However, when I attempted to move this styling into a separate module.scss file, the images did not adjust in size as intended. What could be causing this issue?
Edit Below is the component that I am trying to style:
import ThemeButton from '../components/themeCustomizeButton'
import LanguageSwitcher from '../components/LanguageSwitch'
import Complex from '../components/ComplexitySwitch'
import styles from "../styles/local/components/customize.module.scss"
function Customizing() {
return(
<section className={styles.customize}>
<ThemeButton />
<LanguageSwitcher />
<Complex />
</section>
)
}
export default Customizing