@carbon/charts
Version:
Carbon charting components
109 lines (106 loc) • 5.68 kB
HTML
<!--
Copyright IBM Corp. 2016, 2018
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->
<div class="bx--form-item">
<div class="bx--list-box__wrapper ">
<label class="bx--label">Multi-Select label</label>
<div class="bx--form__helper-text">Optional helper text here</div>
<div
class="bx--multi-select bx--list-box bx--list-box--light">
<div role="button" class="bx--list-box__field" tabindex="0" aria-label="open menu"
aria-expanded="false" aria-haspopup="true">
<span class="bx--list-box__label">Multi select options</span>
<div class="bx--list-box__menu-icon">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" aria-label="Open menu" width="16" height="16" viewBox="0 0 16 16" role="img"><path d="M8 11L3 6l.7-.7L8 9.6l4.3-4.3.7.7z"></path></svg>
</div>
</div>
</div>
</div>
</div>
<div class="bx--form-item">
<div class="bx--list-box__wrapper ">
<label class="bx--label">Multi-Select label</label>
<div class="bx--form__helper-text">Optional helper text here</div>
<div
class="bx--multi-select bx--list-box bx--list-box--expanded bx--multi-select--selected bx--list-box--light">
<div role="button" class="bx--list-box__field" tabindex="0" aria-label="close menu"
aria-expanded="true" aria-haspopup="true">
<div role="button"
class="bx--list-box__selection bx--list-box__selection--multi bx--tag--filter"
tabindex="0" title="Clear all selected items">
1
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" aria-label="Clear selection" width="16" height="16" viewBox="0 0 16 16" role="img"><path d="M12 4.7l-.7-.7L8 7.3 4.7 4l-.7.7L7.3 8 4 11.3l.7.7L8 8.7l3.3 3.3.7-.7L8.7 8z"></path></svg>
</div>
<span class="bx--list-box__label">Multi select options</span>
<div class="bx--list-box__menu-icon">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" aria-label="Close menu" width="16" height="16" viewBox="0 0 16 16" role="img"><path d="M8 5l5 5-.7.7L8 6.4l-4.3 4.3L3 10z"></path></svg>
</div>
</div>
<fieldset class="bx--list-box__menu" role="listbox">
<legend class="bx--assistive-text">Description of form elements within the fieldset</legend>
<div class="bx--list-box__menu-item">
<div class="bx--list-box__menu-item__option">
<div class="bx--form-item bx--checkbox-wrapper">
<label title="Option 1" class="bx--checkbox-label">
<input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-0"
value="on" checked>
<span class="bx--checkbox-appearance"></span>
<span class="bx--checkbox-label-text">Option 1</span>
</label>
</div>
</div>
</div>
<div class="bx--list-box__menu-item">
<div class="bx--list-box__menu-item__option">
<div class="bx--form-item bx--checkbox-wrapper">
<label title="Option 2" class="bx--checkbox-label">
<input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-1"
value="on" >
<span class="bx--checkbox-appearance"></span>
<span class="bx--checkbox-label-text">Option 2</span>
</label>
</div>
</div>
</div>
<div class="bx--list-box__menu-item">
<div class="bx--list-box__menu-item__option">
<div class="bx--form-item bx--checkbox-wrapper">
<label title="Option 3" class="bx--checkbox-label">
<input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-2"
value="on" >
<span class="bx--checkbox-appearance"></span>
<span class="bx--checkbox-label-text">Option 3</span>
</label>
</div>
</div>
</div>
<div class="bx--list-box__menu-item">
<div class="bx--list-box__menu-item__option">
<div class="bx--form-item bx--checkbox-wrapper">
<label title="Option 4" class="bx--checkbox-label">
<input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-3"
value="on" >
<span class="bx--checkbox-appearance"></span>
<span class="bx--checkbox-label-text">Option 4</span>
</label>
</div>
</div>
</div>
<div class="bx--list-box__menu-item">
<div class="bx--list-box__menu-item__option">
<div class="bx--form-item bx--checkbox-wrapper">
<label title="An example option that is really long to show what should be done to handle long text" class="bx--checkbox-label">
<input type="checkbox" name="Option 1" readonly="" class="bx--checkbox" id="downshift-1-item-4"
value="on" >
<span class="bx--checkbox-appearance"></span>
<span class="bx--checkbox-label-text">An example option that is really long to show what should be done to handle long text</span>
</label>
</div>
</div>
</div>
</fieldset>
</div>
</div>
</div>