Skip to content

Commit 33dd4e8

Browse files
sick-sad-worldbennybennett
authored andcommitted
Fix issues related to IE11 compatibility (#259)
* Fix issues related to IE11 compatibility * Fix issues related to IE11 compatibility * Add coverage to tests * Add more coverage * Try to fix documentation, Ensure that all examples have different ID's
1 parent e2e906c commit 33dd4e8

18 files changed

+58
-40
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="ray-dropdown ray-dropdown--compact">
22
<div class="ray-dropdown__wrapper">
3-
<select class="ray-dropdown__input" id="test">
3+
<select class="ray-dropdown__input" id="test-compact">
44
<option value="Pikachu">Pikachu</option>
55
<option value="Squirtle">Squirtle</option>
66
<option value="Squirtle">Charmander</option>
77
</select>
88
</div>
9-
<label class="ray-dropdown__label">
9+
<label class="ray-dropdown__label" for="test-compact">
1010
What's your favorite Pokémon?
1111
</label>
1212
</div>

docs/html/dropdown/dropdown--error.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="ray-dropdown ray-dropdown--error">
22
<div class="ray-dropdown__wrapper">
3-
<select class="ray-dropdown__input" id="test">
3+
<select class="ray-dropdown__input" id="test-error">
44
<option value="Pikachu">Pikachu</option>
55
<option value="Squirtle">Squirtle</option>
66
<option value="Squirtle">Charmander</option>
77
</select>
8-
<label class="ray-dropdown__label">
8+
<label class="ray-dropdown__label" for="test-error">
99
What's your favorite Pokémon?
1010
</label>
1111
</div>

docs/html/dropdown/dropdown--optgroups.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ray-dropdown">
22
<div class="ray-dropdown__wrapper">
3-
<select class="ray-dropdown__input" id="test-example" value="">
3+
<select class="ray-dropdown__input" id="test-optgroups" value="">
44
<optgroup label="Ash">
55
<option value="Pikachu">Pikachu</option>
66
<option value="Charmander">Charmander</option>
@@ -17,7 +17,7 @@
1717
</optgroup>
1818
</select>
1919
</div>
20-
<label class="ray-dropdown__label" for="test-example">
20+
<label class="ray-dropdown__label" for="test-optgroups">
2121
Pokemon
2222
</label>
2323
</div>

docs/html/dropdown/dropdown--with-icon.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
<div class="ray-dropdown__wrapper">
44
<select
55
class="ray-dropdown__input"
6-
id="test-example"
7-
value=""
6+
id="test-icon"
87
required
98
aria-required="true"
109
>
@@ -19,7 +18,7 @@
1918
<option value="Sonichu">Sonichu</option>
2019
</select>
2120
</div>
22-
<label class="ray-dropdown__label" for="test-example">
21+
<label class="ray-dropdown__label" for="test-icon">
2322
Pokemon
2423
</label>
2524
</div>

docs/html/dropdown/dropdown--with-placeholder.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ray-dropdown">
22
<div class="ray-dropdown__wrapper">
3-
<select class="ray-dropdown__input" id="test-example" value="">
3+
<select class="ray-dropdown__input" id="test-placeholder" value="">
44
<option value="" data-ray-placeholder>
55
Choose pokemon?
66
</option>
@@ -13,7 +13,7 @@
1313
<option value="Sonichu">Sonichu</option>
1414
</select>
1515
</div>
16-
<label class="ray-dropdown__label" for="test-example">
16+
<label class="ray-dropdown__label" for="test-placeholder">
1717
Pokemon
1818
</label>
1919
</div>

docs/html/dropdown/dropdown--with-prepend.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="ray-dropdown__wrapper">
66
<select
77
class="ray-dropdown__input"
8-
id="test-example"
8+
id="test-prepend"
99
value=""
1010
required
1111
aria-required="true"
@@ -20,7 +20,7 @@
2020
<option value="Charmander">Charmander</option>
2121
<option value="Sonichu">Sonichu</option>
2222
</select>
23-
<label class="ray-dropdown__label" for="test-example">
23+
<label class="ray-dropdown__label" for="test-prepend">
2424
Pokemon
2525
</label>
2626
</div>

docs/html/dropdown/dropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<option value="Squirtle">Charmander</option>
77
</select>
88
</div>
9-
<label class="ray-dropdown__label">
9+
<label class="ray-dropdown__label" for="test">
1010
What's your favorite Pokémon?
1111
</label>
1212
</div>

docs/html/dropdown/rtl-dropdown--compact.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div dir="rtl">
22
<div class="ray-dropdown ray-dropdown--compact">
33
<div class="ray-dropdown__wrapper">
4-
<select class="ray-dropdown__input" id="test">
4+
<select class="ray-dropdown__input" id="rtl-test-compact">
55
<option value="Pikachu">Pikachu</option>
66
<option value="Squirtle">Squirtle</option>
77
<option value="Squirtle">Charmander</option>
88
</select>
99
</div>
10-
<label class="ray-dropdown__label">
10+
<label class="ray-dropdown__label" for="rtl-test-compact">
1111
What's your favorite Pokémon?
1212
</label>
1313
</div>

docs/html/dropdown/rtl-dropdown--error.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div dir="rtl">
22
<div class="ray-dropdown ray-dropdown--error">
33
<div class="ray-dropdown__wrapper">
4-
<select class="ray-dropdown__input" id="test">
4+
<select class="ray-dropdown__input" id="rtl-test-error">
55
<option value="Pikachu">Pikachu</option>
66
<option value="Squirtle">Squirtle</option>
77
<option value="Squirtle">Charmander</option>
88
</select>
99
</div>
10-
<label class="ray-dropdown__label">
10+
<label class="ray-dropdown__label" for="rtl-test-error">
1111
What's your favorite Pokémon?
1212
</label>
1313
</div>

docs/html/dropdown/rtl-dropdown--optgroups.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div dir="rtl">
22
<div class="ray-dropdown">
33
<div class="ray-dropdown__wrapper">
4-
<select class="ray-dropdown__input" id="test-example" value="">
4+
<select class="ray-dropdown__input" id="rtl-test-groups" value="">
55
<optgroup label="Ash">
66
<option value="Pikachu">Pikachu</option>
77
<option value="Charmander">Charmander</option>
@@ -18,7 +18,7 @@
1818
</optgroup>
1919
</select>
2020
</div>
21-
<label class="ray-dropdown__label" for="test-example">
21+
<label class="ray-dropdown__label" for="rtl-test-groups">
2222
Pokemon
2323
</label>
2424
</div>

0 commit comments

Comments
 (0)