Skip to content

Commit f4ddc33

Browse files
smhigleycarmacleodmcking65
authored
Collapsible Listbox example: Add deprecation warning and remove inbound links to it (pull #1852)
The select-only combobox pattern replaces the collapsable listbox pattern. This commit: * Removes links to collapsable listbox example page from main doc and other listbox examples. * Adds a warning to the collapsable listbox that points to select-only combobox. * Adds (Deprecated) to the title of the collapsable listbox example page. Co-authored-by: Carolyn MacLeod <[email protected]> Co-authored-by: Matt King <[email protected]>
1 parent c8b1c8c commit f4ddc33

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

aria-practices.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1811,7 +1811,6 @@ <h3>Listbox</h3>
18111811
<h4>Examples</h4>
18121812
<ul>
18131813
<li><a href="examples/listbox/listbox-scrollable.html">Scrollable Listbox Example</a>: Single-select listbox that scrolls to reveal more options, similar to HTML <code>select</code> with <code>size</code> attribute greater than one.</li>
1814-
<li><a href="examples/listbox/listbox-collapsible.html">Collapsible Dropdown Listbox Example</a>: Single-select collapsible listbox that expands when activated, similar to HTML <code>select</code> with the attribute <code>size=&quot;1&quot;</code>.</li>
18151814
<li><a href="examples/listbox/listbox-rearrangeable.html">Example Listboxes with Rearrangeable Options</a>: Examples of both single-select and multi-select listboxes with accompanying toolbars where options can be added, moved, and removed.</li>
18161815
<li><a href="examples/listbox/listbox-grouped.html">Listbox Example with Grouped Options</a>: Single-select listbox with grouped options, similar to an HTML <code>select</code> with <code>optgroup</code> children.</li>
18171816
</ul>

examples/listbox/listbox-collapsible.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>Collapsible Dropdown Listbox Example | WAI-ARIA Authoring Practices 1.2</title>
5+
<title>(Deprecated) Collapsible Dropdown Listbox Example | WAI-ARIA Authoring Practices 1.2</title>
66

77
<!-- Core js and css shared by all examples; do not modify when using this template. -->
88
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/base.css">
@@ -27,7 +27,10 @@
2727
</ul>
2828
</nav>
2929
<main>
30-
<h1>Collapsible Dropdown Listbox Example</h1>
30+
<h1>(Deprecated) Collapsible Dropdown Listbox Example</h1>
31+
<div class="advisement">
32+
<p><strong>DEPRECATION WARNING:</strong> This pattern has been deprecated, and will be removed in a future version of the ARIA Authoring Practices. The <a href="../combobox/combobox-select-only.html">select-only combobox</a> should be used as an alternative to this pattern.</p>
33+
</div>
3134
<p>
3235
The following example implementation of the
3336
<a href="../../#Listbox">design pattern for listbox</a>
@@ -38,6 +41,7 @@ <h1>Collapsible Dropdown Listbox Example</h1>
3841
</p>
3942
<p>Similar examples include:</p>
4043
<ul>
44+
<li><a href="../combobox/combobox-select-only.html">Select-Only Combobox</a>: A single-select combobox with no text input that is functionally similar to an HTML <code>select</code> element.</li>
4145
<li><a href="listbox-scrollable.html">Scrollable Listbox Example</a>: Single-select listbox that scrolls to reveal more options, similar to HTML <code>select</code> with <code>size</code> attribute greater than one.</li>
4246
<li><a href="listbox-rearrangeable.html">Example Listboxes with Rearrangeable Options</a>: Examples of both single-select and multi-select listboxes with accompanying toolbars where options can be added, moved, and removed.</li>
4347
<li><a href="listbox-grouped.html">Listbox Example with Grouped Options</a>: Single-select listbox with grouped options, similar to an HTML <code>select</code> with <code>optgroup</code> children.</li>

examples/listbox/listbox-grouped.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ <h1>Listbox Example with Grouped Options</h1>
3535
<ul>
3636
<li><a href="listbox-scrollable.html">Scrollable Listbox Example</a>: Single-select listbox that scrolls to reveal more options, similar to HTML <code>select</code> with <code>size</code> attribute greater than one.</li>
3737
<li><a href="listbox-rearrangeable.html">Example Listboxes with Rearrangeable Options</a>: Examples of both single-select and multi-select listboxes with accompanying toolbars where options can be added, moved, and removed.</li>
38-
<li><a href="listbox-collapsible.html">Collapsible Dropdown Listbox Example</a>: Single-select collapsible listbox that expands when activated, similar to HTML <code>select</code> with the attribute <code>size=&quot;1&quot;</code>.</li>
3938
</ul>
4039
<section>
4140
<div class="example-header">

examples/listbox/listbox-rearrangeable.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ <h1>Example Listboxes with Rearrangeable Options</h1>
3939
<p>Similar examples include:</p>
4040
<ul>
4141
<li><a href="listbox-scrollable.html">Scrollable Listbox Example</a>: Single-select listbox that scrolls to reveal more options, similar to HTML <code>select</code> with <code>size</code> attribute greater than one.</li>
42-
<li><a href="listbox-collapsible.html">Collapsible Dropdown Listbox Example</a>: Single-select collapsible listbox that expands when activated, similar to HTML <code>select</code> with the attribute <code>size=&quot;1&quot;</code>.</li>
4342
<li><a href="listbox-grouped.html">Listbox Example with Grouped Options</a>: Single-select listbox with grouped options, similar to an HTML <code>select</code> with <code>optgroup</code> children.</li>
4443
</ul>
4544
<section>

examples/listbox/listbox-scrollable.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ <h1>Scrollable Listbox Example</h1>
3636
<p>Similar examples include:</p>
3737
<ul>
3838
<li><a href="listbox-rearrangeable.html">Example Listboxes with Rearrangeable Options</a>: Examples of both single-select and multi-select listboxes with accompanying toolbars where options can be added, moved, and removed.</li>
39-
<li><a href="listbox-collapsible.html">Collapsible Dropdown Listbox Example</a>: Single-select collapsible listbox that expands when activated, similar to HTML <code>select</code> with the attribute <code>size=&quot;1&quot;</code>.</li>
4039
<li><a href="listbox-grouped.html">Listbox Example with Grouped Options</a>: Single-select listbox with grouped options, similar to an HTML <code>select</code> with <code>optgroup</code> children.</li>
4140
</ul>
4241
<section>

0 commit comments

Comments
 (0)