Change styling on hover semantic-ui-react components

前端 未结 3 2005
南旧
南旧 2021-01-19 16:39

if I set up a className for certain components like


and in my

3条回答
  •  没有蜡笔的小新
    2021-01-19 17:44

    Because you didn't provide more code, hard to guess what overriding style you try to change. Try to add !importanant rule to this style.

    .Change:hover {
      background-color: black !importanant;
    }
    

    To avoid !important, which is not always a good solution, add a more specific CSS selector, for exaple Segment.Change:hover.

    UPDATE: Try to remove color='blue' from the template and check if will work with and without !important rule.

提交回复
热议问题