F
F
frolldoll2018-05-12 18:26:23
css
frolldoll, 2018-05-12 18:26:23

Why do styles get corrupted when I import someone else's UI?

I want to use semantic ui in my react app, but when I do

import { Segment, Button, Divider } from 'semantic-ui-react'
import 'semantic-ui-css/semantic.min.css'
Then all my styles that are in style.css collapse and the site becomes not quite normal

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-05-12
@frolldoll

I think your rules are being overwritten by the rules that are in semantic.min.css.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question