UNPKG

2.78 kBHTMLView Raw
1<!--
2 Copyright IBM Corp. 2016, 2018
3
4 This source code is licensed under the Apache-2.0 license found in the
5 LICENSE file in the root directory of this source tree.
6-->
7
8<div class="bx--form-item bx--multi-select bx--list-box bx--list-box--inline">
9 <div role="button" class="bx--list-box__field" tabindex="0" aria-label="open menu" aria-expanded="false"
10 aria-haspopup="true">
11 <span class="bx--list-box__label">Label</span>
12 <div class="bx--list-box__menu-icon">
13 <svg width="10" height="5" name="caret--down" role="img" viewBox="0 0 10 5" aria-label="Open menu">
14 <title>Open menu</title>
15 <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" />
16 </svg>
17 </div>
18 </div>
19</div>
20<div class="bx--form-item bx--multi-select bx--list-box bx--list-box--inline">
21 <div role="button" class="bx--list-box__field" tabindex="0" aria-label="close menu" aria-expanded="true"
22 aria-haspopup="true">
23 <div role="button" class="bx--list-box__selection bx--list-box__selection--multi" tabindex="0"
24 title="Clear all selected items">
25 1
26 <svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
27 <title>Close Modal</title>
28 <path d="M6.32 5L10 8.68 8.68 10 5 6.32 1.32 10 0 8.68 3.68 5 0 1.32 1.32 0 5 3.68 8.68 0 10 1.32 6.32 5z" fill-rule="nonzero"
29 />
30 </svg>
31 </div>
32 <span class="bx--list-box__label">Label</span>
33 <div class="bx--list-box__menu-icon bx--list-box__menu-icon--open">
34 <svg width="10" height="5" name="caret--down" role="img" viewBox="0 0 10 5" aria-label="Close menu">
35 <title>Close menu</title>
36 <path d="M0 0l5 4.998L10 0z" fill-rule="evenodd" />
37 </svg>
38 </div>
39 </div>
40 <fieldset class="bx--list-box__menu">
41 <legend class="bx--assistive-text">Description of form elements within the fieldset</legend>
42 <div class="bx--list-box__menu-item">
43 <div class="bx--form-item bx--checkbox-wrapper">
44 <label title="Option 1" class="bx--checkbox-label">
45 <input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-0" value="on" checked>
46 <span class="bx--checkbox-appearance"></span>
47 <span class="bx--checkbox-label-text">Option 1</span>
48 </label>
49 </div>
50 </div>
51 <div class="bx--list-box__menu-item">
52 <div class="bx--form-item bx--checkbox-wrapper">
53 <label title="Option 2" class="bx--checkbox-label">
54 <input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-1" value="on">
55 <span class="bx--checkbox-appearance"></span>
56 <span class="bx--checkbox-label-text">Option 2</span>
57 </label>
58 </div>
59 </div>
60 </fieldset>
61</div>