#Global mantine styles overwrites my own

6 messages · Page 1 of 1 (latest)

narrow frost
#

Hi,
So when i import '@mantine/core/styles/global.css' those styles overwrite my own(i have standard css file and using tailwind on couple of places).
I saw that i dont need to use global, i can use only for specific for what i need.
Great in my component i imported "@mantine/core/styles/ScrollArea.css"(since i want to use ScrollArea), but nothing happens.
I saw in documentation that some styles requires addtional style to work like theres example for button, but i cant find what more styles are needed for use of ScrollArea?
It says "check the component source code" but i cant find it.

fossil owl
narrow frost
#

same bug happnes with core import import '@mantine/core/styles.css';

fossil owl
narrow frost
#

Yea i already did and maybe im missing something, since i wrote that i implemented that part that is on documentation section about "Import styles per component".
Imported in my component @mantine/core/styles/ScrollArea.css, to avoid importing global style. But as i was saying maybe scroolArea needs something more like button needs UnstyledButton to work.

fossil owl