Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right floated icon button introduces an unexpected left-margin #3525

Closed
kfei opened this issue Dec 30, 2015 · 4 comments
Closed

Right floated icon button introduces an unexpected left-margin #3525

kfei opened this issue Dec 30, 2015 · 4 comments
Milestone

Comments

@kfei
Copy link

kfei commented Dec 30, 2015

https://jsfiddle.net/g8tdvtpe/

<button class="ui basic circular left floated icon button">
    <i class="chevron left icon"></i>
</button>
<button class="ui basic circular right floated icon button">
    <i class="chevron right icon"></i>
</button>

The right chevron icon inside the button has an unexpected left-margin. But the left chevron is OK.

@dedyjuliana
Copy link

yes, I see the same issue too.

@jlukic jlukic added this to the 2.1.9 milestone Jan 9, 2016
@sondreb
Copy link

sondreb commented Jan 25, 2016

This is the class definition that causes the issue:

.ui.button > .right.icon:not(.button) {
  margin: 0em -0.21428571em 0em 0.42857143em;
}

@sondreb
Copy link

sondreb commented Jan 25, 2016

You can temporarily fix the issue by adding this class, by specifying the specific icon you don't mess with other styles:

For chevron:

.ui.button > .right.chevron.icon:not(.button) {
  margin: 0;
}

For arrow:

.ui.button > .right.arrow.icon:not(.button) {
  margin: 0;
}

@jlukic
Copy link
Member

jlukic commented Feb 16, 2016

Fixed in 2.1.9

@jlukic jlukic closed this as completed Feb 16, 2016
@jlukic jlukic modified the milestones: 2.1.9, 2.2 May 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants