Skip to content

Commit 7e997a0

Browse files
authored
Combobox examples with list popups: Fix missing closing LI in accessibility features section (pull #2079)
1 parent e250d12 commit 7e997a0

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

examples/combobox/combobox-autocomplete-both.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,14 @@ <h2>Accessibility Features</h2>
147147
When an element loses focus, its border changes from two pixels to two and padding is increased by two pixels.
148148
</li>
149149
</ul>
150-
<li>
151-
To ensure the inline SVG graphic used for the arrow in the open button has sufficient contrast with the background when high contrast settings change the color of text content,
152-
CSS <code>forced-color-adjust</code> is set to <code>auto</code> on the <code>svg</code> element and and the <code>fill</code> attribute of the <code>polygon</code> element is set to <code>currentColor</code>.
153-
This causes the colors of the <code>fill</code> of the polygon elements to be overridden by the high contrast color setting.
154-
If <code>forced-color-adjust</code> were not used to override the colors specified for the <code>fill</code> property, the color would remain the same in high contrast mode, which could lead to insufficient contrast between the arrow and the background or even make it invisible if the color matched the high contrast mode background.<br>
155-
Note: The explicit setting of <code>forced-color-adjust</code> is necessary because some browsers do not use <code>auto</code> as the default value for SVG graphics.
156-
</li>
150+
</li>
151+
<li>
152+
To ensure the inline SVG graphic used for the arrow in the open button has sufficient contrast with the background when high contrast settings change the color of text content,
153+
CSS <code>forced-color-adjust</code> is set to <code>auto</code> on the <code>svg</code> element and and the <code>fill</code> attribute of the <code>polygon</code> element is set to <code>currentColor</code>.
154+
This causes the colors of the <code>fill</code> of the polygon elements to be overridden by the high contrast color setting.
155+
If <code>forced-color-adjust</code> were not used to override the colors specified for the <code>fill</code> property, the color would remain the same in high contrast mode, which could lead to insufficient contrast between the arrow and the background or even make it invisible if the color matched the high contrast mode background.<br>
156+
Note: The explicit setting of <code>forced-color-adjust</code> is necessary because some browsers do not use <code>auto</code> as the default value for SVG graphics.
157+
</li>
157158
</ul>
158159
</section>
159160

examples/combobox/combobox-autocomplete-list.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,14 @@ <h2>Accessibility Features</h2>
148148
When an element loses focus, its border changes from two pixels to two and padding is increased by two pixels.
149149
</li>
150150
</ul>
151-
<li>
152-
To ensure the inline SVG graphic used for the arrow in the open button has sufficient contrast with the background when high contrast settings change the color of text content,
153-
CSS <code>forced-color-adjust</code> is set to <code>auto</code> on the <code>svg</code> element and and the <code>fill</code> attribute of the <code>polygon</code> element is set to <code>currentColor</code>.
154-
This causes the colors of the <code>fill</code> of the polygon elements to be overridden by the high contrast color setting.
155-
If <code>forced-color-adjust</code> were not used to override the colors specified for the <code>fill</code> property, the color would remain the same in high contrast mode, which could lead to insufficient contrast between the arrow and the background or even make it invisible if the color matched the high contrast mode background.<br>
156-
Note: The explicit setting of <code>forced-color-adjust</code> is necessary because some browsers do not use <code>auto</code> as the default value for SVG graphics.
157-
</li>
151+
</li>
152+
<li>
153+
To ensure the inline SVG graphic used for the arrow in the open button has sufficient contrast with the background when high contrast settings change the color of text content,
154+
CSS <code>forced-color-adjust</code> is set to <code>auto</code> on the <code>svg</code> element and and the <code>fill</code> attribute of the <code>polygon</code> element is set to <code>currentColor</code>.
155+
This causes the colors of the <code>fill</code> of the polygon elements to be overridden by the high contrast color setting.
156+
If <code>forced-color-adjust</code> were not used to override the colors specified for the <code>fill</code> property, the color would remain the same in high contrast mode, which could lead to insufficient contrast between the arrow and the background or even make it invisible if the color matched the high contrast mode background.<br>
157+
Note: The explicit setting of <code>forced-color-adjust</code> is necessary because some browsers do not use <code>auto</code> as the default value for SVG graphics.
158+
</li>
158159
</ul>
159160
</section>
160161

examples/combobox/combobox-autocomplete-none.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,14 @@ <h2>Accessibility Features</h2>
103103
When an element loses focus, its border changes from two pixels to two and padding is increased by two pixels.
104104
</li>
105105
</ul>
106-
<li>
107-
To ensure the inline SVG graphic used for the arrow in the open button has sufficient contrast with the background when high contrast settings change the color of text content,
108-
CSS <code>forced-color-adjust</code> is set to <code>auto</code> on the <code>svg</code> element and and the <code>fill</code> attribute of the <code>polygon</code> element is set to <code>currentColor</code>.
109-
This causes the colors of the <code>fill</code> of the polygon elements to be overridden by the high contrast color setting.
110-
If <code>forced-color-adjust</code> were not used to override the colors specified for the <code>fill</code> property, the color would remain the same in high contrast mode, which could lead to insufficient contrast between the arrow and the background or even make it invisible if the color matched the high contrast mode background.<br>
111-
Note: The explicit setting of <code>forced-color-adjust</code> is necessary because some browsers do not use <code>auto</code> as the default value for SVG graphics.
112-
</li>
106+
</li>
107+
<li>
108+
To ensure the inline SVG graphic used for the arrow in the open button has sufficient contrast with the background when high contrast settings change the color of text content,
109+
CSS <code>forced-color-adjust</code> is set to <code>auto</code> on the <code>svg</code> element and and the <code>fill</code> attribute of the <code>polygon</code> element is set to <code>currentColor</code>.
110+
This causes the colors of the <code>fill</code> of the polygon elements to be overridden by the high contrast color setting.
111+
If <code>forced-color-adjust</code> were not used to override the colors specified for the <code>fill</code> property, the color would remain the same in high contrast mode, which could lead to insufficient contrast between the arrow and the background or even make it invisible if the color matched the high contrast mode background.<br>
112+
Note: The explicit setting of <code>forced-color-adjust</code> is necessary because some browsers do not use <code>auto</code> as the default value for SVG graphics.
113+
</li>
113114
</ul>
114115
</section>
115116

0 commit comments

Comments
 (0)