diff --git a/build/98.css b/build/98.css index c0b9d97..761c0e2 100644 --- a/build/98.css +++ b/build/98.css @@ -354,6 +354,7 @@ select { -webkit-appearance: none; -moz-appearance: none; position: relative; + padding-right: 32px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0V1V16H1V1H15V0Z' fill='%23DFDFDF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1V15H2V2H14V1H2Z' fill='white'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H15H0V16H15V0H16V17Z' fill='black'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1H14V15H1V16H14H15V1Z' fill='%23808080'/%3E %3Crect x='2' y='2' width='12' height='13' fill='%23C0C0C0'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4V7H5V8H6V9H7V10H8V9H9V8H10V7H11V6Z' fill='black'/%3E %3C/svg%3E"); background-position: top 2px right 2px; background-repeat: no-repeat; diff --git a/docs/98.css b/docs/98.css index c0b9d97..761c0e2 100644 --- a/docs/98.css +++ b/docs/98.css @@ -354,6 +354,7 @@ select { -webkit-appearance: none; -moz-appearance: none; position: relative; + padding-right: 32px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='17' viewBox='0 0 16 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0V1V16H1V1H15V0Z' fill='%23DFDFDF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1V15H2V2H14V1H2Z' fill='white'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H15H0V16H15V0H16V17Z' fill='black'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1H14V15H1V16H14H15V1Z' fill='%23808080'/%3E %3Crect x='2' y='2' width='12' height='13' fill='%23C0C0C0'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4V7H5V8H6V9H7V10H8V9H9V8H10V7H11V6Z' fill='black'/%3E %3C/svg%3E"); background-position: top 2px right 2px; background-repeat: no-repeat; diff --git a/docs/index.html b/docs/index.html index a05a04d..36b4769 100644 --- a/docs/index.html +++ b/docs/index.html @@ -504,6 +504,57 @@ — Microsoft Windows User Experience p. 175 + +

+ Dropdowns can be rendered by using the select and option + elements. +

+ +
+ +
+ Show code +
<select>
+  <option>5 - Incredible!</option>
+  <option>4 - Great!</option>
+  <option>3 - Pretty good</option>
+  <option>2 - Not so great</option>
+  <option>1 - Unfortunate</option>
+</select>
+
+
+ +

+ By default, the first option will be selected. You can change this by + giving one of your option elements the selected + attribute. +

+ +
+ +
+ Show code +
<select>
+  <option>5 - Incredible!</option>
+  <option>4 - Great!</option>
+  <option selected>3 - Pretty good</option>
+  <option>2 - Not so great</option>
+  <option>1 - Unfortunate</option>
+</select>
+
+
diff --git a/docs/index.html.ejs b/docs/index.html.ejs index 5d403d4..9aa973b 100644 --- a/docs/index.html.ejs +++ b/docs/index.html.ejs @@ -371,6 +371,37 @@ — Microsoft Windows User Experience p. 175 + +

+ Dropdowns can be rendered by using the select and option + elements. +

+ + <%- example(` + + `) %> + +

+ By default, the first option will be selected. You can change this by + giving one of your option elements the selected + attribute. +

+ + <%- example(` + + `) %> diff --git a/style.css b/style.css index 54f7073..73aef65 100644 --- a/style.css +++ b/style.css @@ -326,6 +326,7 @@ select { -webkit-appearance: none; -moz-appearance: none; position: relative; + padding-right: 32px; background-image: svg-load("./icon/button-down.svg"); background-position: top 2px right 2px; background-repeat: no-repeat;