Skip to content

Commit a777485

Browse files
thejsproJohn
andauthored
Removing overly specific selector for select input type (#207)
* Removing overly specific selector for select input type in forms.css and forms.evergreen.css * Fixing indentation on forms.css Co-authored-by: John <john@localhost>
1 parent 3d1c1ff commit a777485

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

forms.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ textarea {
2222
select {
2323
-moz-appearance: none;
2424
-webkit-appearance: none;
25-
background: no-repeat right center / 1em;
25+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em;
2626
border-radius: 0;
2727
padding-right: 1em;
2828
}
2929

3030
/**
31-
* Change the inconsistent appearance in all browsers (opinionated).
31+
* Don't show the arrow for multiple choice selects
3232
*/
3333

34-
select:not([multiple]):not([size]) {
35-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
34+
select[multiple] {
35+
background-image: none;
3636
}
3737

3838
/**

forms.evergreen.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ textarea {
2222
select {
2323
-moz-appearance: none;
2424
-webkit-appearance: none;
25-
background: no-repeat right center / 1em;
25+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em;
2626
border-radius: 0;
2727
padding-right: 1em;
2828
}
2929

3030
/**
31-
* Change the inconsistent appearance in all browsers (opinionated).
31+
* Don't show the arrow for multiple choice selects
3232
*/
3333

34-
select:not([multiple]):not([size]) {
35-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E");
34+
select[multiple] {
35+
background-image: none;
3636
}
3737

3838
/**

0 commit comments

Comments
 (0)