Skip to content

Commit 429e42c

Browse files
authored
Remove support for Select element variants (#3549)
1 parent bff2530 commit 429e42c

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

sites/skeleton.dev/src/examples/tailwind/forms/ExampleSelection.astro

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,39 @@
77
<option value="4">Option 4</option>
88
<option value="5">Option 5</option>
99
</select>
10-
<!-- Size -->
11-
<select class="select rounded-container" size="4" value="1">
10+
11+
<!--
12+
NOTE: the following Select element variants are included purely for legacy support. It is not longer advised you use these variants in production apps. Currently the styles are too limited and the style API vary greatly bewteen browser vendors. Expect these styles to be removed in the next major version of Skeleton (v4.0). In the meantime, consider a replacement using a custom Listbox component if you need this type of interface in your application. We've provided some resources below to guide you in this process.
13+
14+
ARIA APG Guidelines:
15+
https://www.w3.org/WAI/ARIA/apg/patterns/listbox/
16+
17+
Zag.js Listbox component:
18+
(NOTE: this will come to Skeleton in the future)
19+
https://zagjs.com/components/react/listbox
20+
https://zagjs.com/components/svelte/listbox
21+
22+
Similar components may also exist or third party libraries such as Bits, Melt, or Radix:
23+
https://www.skeleton.dev/docs/headless/bits-ui
24+
https://www.skeleton.dev/docs/headless/melt-ui
25+
https://www.skeleton.dev/docs/headless/radix-ui
26+
-->
27+
28+
<!-- Size Variant -->
29+
<!-- <select class="select rounded-container" size="4" value="1">
1230
<option value="1">Option 1</option>
1331
<option value="2">Option 2</option>
1432
<option value="3">Option 3</option>
1533
<option value="4">Option 4</option>
1634
<option value="5">Option 5</option>
17-
</select>
18-
<!-- Multiple -->
19-
<select class="select rounded-container" multiple value="['1', '2']">
35+
</select> -->
36+
37+
<!-- Multiple Variant -->
38+
<!-- <select class="select rounded-container" multiple value="['1', '2']">
2039
<option value="1">Option 1</option>
2140
<option value="2">Option 2</option>
2241
<option value="3">Option 3</option>
2342
<option value="4">Option 4</option>
2443
<option value="5">Option 5</option>
25-
</select>
44+
</select> -->
2645
</form>

0 commit comments

Comments
 (0)