Semantic-ui: [Card] Icon containing class "card" misbehaves

Created on 5 Apr 2018  路  4Comments  路  Source: Semantic-Org/Semantic-UI

Steps

<div class="ui link cards">
  <div class="card">
   ...
   <i class="address outline card icon"></i>
  </div>
</div>

Expected Result

Nothing

Actual Result

The card icon has regular ui card css applied to it, cause the selector doesn't has :not(.icon)

Version

2.3.1 and possibly earlier versions

Testcase

https://jsfiddle.net/wzq0a6ar/4/

Confirmed Bug

Most helpful comment

I think you did not understand the bug. Everything works for me too, with or without the content class. It's just that if you hover the icon, it acts like a card too.

All 4 comments

Works for me https://jsfiddle.net/znx72wht/ in your JSFiddle you don't have the content class in your card

I think you did not understand the bug. Everything works for me too, with or without the content class. It's just that if you hover the icon, it acts like a card too.

card

Replacing the .ui.link.cards .card:hover selector with .ui.link.cards .card:not(.icon):hover in the css seemed to fix it, though.

@Gammagames That is exactly what this bug is submitted for.

Was this page helpful?
0 / 5 - 0 ratings