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

Better select styles for Firefox and Safari #128

Merged
merged 6 commits into from
Dec 15, 2015
41 changes: 40 additions & 1 deletion ui/components/forms/flavors/select/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,43 @@
padding: $spacing-x-small;
}
}
}

&_container {
position: relative;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use 2 space indentation, please adjust throughout the file.


.#{$css-prefix}select {
-moz-appearance: none;
-webkit-appearance: none;
padding: {
left: $spacing-x-small;
right: $spacing-large;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add

&::-ms-expand {
  display: none;
}

this will help it render in IE

}

&::-ms-expand {
display: none;
}

&:before,
&:after {
position: absolute;
content: "";
display: block;
right: $spacing-x-small;
width: 0;
height: 0;
border-left: 3px solid transparent;
border-right: 3px solid transparent;
}

&:before {
border-bottom: 5px solid $color-background-inverse;
top: calc((#{$line-height-button} / 2) - 6px);
}

&:after {
border-top: 5px solid $color-background-inverse;
bottom: calc((#{$line-height-button} / 2) - 6px);
}
}
}