Semantic-ui-react: Button - Labeled Icon - Darken background rotates with icon

Created on 13 Oct 2020  路  4Comments  路  Source: Semantic-Org/Semantic-UI-React

Bug Report

image

Steps

Create a Button with Labeled Icon, and make Labeled Icon rotating with loading prop:

<Button
  labelPosition="right"
  size="huge"
  icon
>
  Test
  <Icon name="circle notch" loading />
</Button>

Expected Result

I expect background to stay static and only Icon content to be rotated

Actual Result

Background rotates together with Icon

Version

2.0.0

Testcase

https://codesandbox.io/s/elated-framework-kgepn?file=/src/App.js

CSS bug

All 4 comments

馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

I think I can fix it by myself a bit later tonight, just want to get a confirmation it is considered as a bug, not a feature.
IMO, need to move rotate animation from <i> element to it's child :before

@flppv Looks like this is definitely an issue... but the CSS that is targeting these elements is not part of SUIR. You can open an issue in the parent SUI project for this. Or you can write some global CSS that overrides those defaults to move it.

FYI: This is fixed in Fomantic-UI since 2.7.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GautierT picture GautierT  路  3Comments

AlvMF1 picture AlvMF1  路  3Comments

KevinGorjan picture KevinGorjan  路  3Comments

jayphelps picture jayphelps  路  3Comments

ryanpcmcquen picture ryanpcmcquen  路  3Comments