I'm looking to use Flexbox to align an svg and the text within a button and all is working well in Chrome and Safari, but in Firefox there seems to be a problem.
This codepen should demonstrate the problem live. Please note that I am pulling in https://github.com/mastastealth/sass-flex-mixin/blob/master/_flex.scss as an external CSS sheet in the codepen.
http://codepen.io/dominicchapman/pen/EgNgoq
SCSS as follows:
.Button {
border: 0 none;
height: 32px;
padding: 0 16px;
font-size: 14px;
background-color: orange;
color: white;
.Icon {
fill: white;
}
&:hover, &:active {
background: red;
}
}
.Button__icon {
@include inline-flex;
@include align-items(center);
.Icon {
margin-right: 11px;
height:16px;
width:6px
}
}
Any help would be greatly appreciated. Thanks in advance.