#TextInput component: custom styles are overridden when using css modules to change the Input element

4 messages · Page 1 of 1 (latest)

abstract slate
#
      classNames={{
        root: styles.searchRoot,
        wrapper: styles.searchWrapper,
        input: styles.input,
      }}
/>```

This is the element but these are the resulting styles:
desert wind
abstract slate
# desert wind Make sure that you are importing your styles after Mantine styles. If you prov...

I was able to replicate it. The cause if it is having the components like <Header/> in the root folder at the same level as the root layout.
So probably not a Mantine specific problem. Just need to move the components to a nested folder to fix it.
https://github.com/joncoronel/testing-mantine-7

GitHub

Contribute to joncoronel/testing-mantine-7 development by creating an account on GitHub.

desert wind