Skip to content

Commit

Permalink
Fix visual bug IE.
Browse files Browse the repository at this point in the history
Icon width auto does not work well with IE. This will make the icon inherit the width from the parent (which will be the full width of the button) while centering the svg in the box. Thus the svg will be centered on the box.
  • Loading branch information
Henrik Hermansen committed Dec 1, 2016
1 parent ed51c59 commit b5479a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion less/secondary-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@
right: 5px;
display: inline-block;
height: 18px;
width: auto;
width: 18px;
fill: @ffe-blue-royal;
}

&--condensed .ffe-secondary-button__label-icon {
height: 14px;
width: 14px;
}
}
3 changes: 2 additions & 1 deletion less/tertiary-button.less
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
left: 4px;
fill: @ffe-blue-royal;
height: 18px;
width: auto;
width: 18px;
}

&--condensed {
Expand All @@ -54,6 +54,7 @@
bottom: 7px;
left: 9px;
height: 14px;
width: 14px;
}
}
}

0 comments on commit b5479a4

Please sign in to comment.