Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 79b0cd8

Browse files
authored
Merge pull request #32 from filamentgroup/iefix
IE Support fixed up. 3.2!
2 parents 08d6dac + d485101 commit 79b0cd8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fg-select-css",
3-
"version": "3.1.0",
3+
"version": "3.2.0",
44
"description": "Cross-browser CSS for consistent select element styling.",
55
"scripts": {
66
},

src/select-css.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@
2222
for the icon, if you want to change the color, be sure to use `%23` instead of `#`, since it's a url. You can also swap in a different svg icon or an external image reference
2323
2424
*/
25-
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4"><path fill="%23007CB2" d="M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z"/></svg>'),
25+
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E'),
2626
linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%);
2727
background-repeat: no-repeat, repeat;
2828
/* arrow icon position (1em from the right, 50% vertical) , then gradient position*/
2929
background-position: right .7em top 50%, 0 0;
3030
/* icon size, then gradient */
3131
background-size: .65em auto, 100%;
3232
}
33+
/* Hide arrow icon in IE browsers */
34+
.select-css::-ms-expand {
35+
display: none;
36+
}
3337
/* Hover style */
3438
.select-css:hover {
3539
border-color: #888;

0 commit comments

Comments
 (0)