@carbon/charts
Version:
Carbon charting components
161 lines (156 loc) • 12.4 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--dropdown__wrapper ">
<span id="example-qlz1ek2hlfs-label" class="bx--label">Dropdown label</span>
<div class="bx--form__helper-text">Optional helper text.</div>
<div data-dropdown data-value
class="bx--dropdown ">
<button class="bx--dropdown-text" aria-haspopup="true" aria-expanded="false" aria-controls="example-qlz1ek2hlfs-menu" aria-labelledby="example-qlz1ek2hlfs-label example-qlz1ek2hlfs-value" type="button">
<span class="bx--dropdown-text__inner" id="example-qlz1ek2hlfs-value"> Dropdown option </span>
<span class="bx--dropdown__arrow-container">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--dropdown__arrow" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11L3 6l.7-.7L8 9.6l4.3-4.3.7.7z"></path></svg>
</span>
</button>
<ul class="bx--dropdown-list" id="example-qlz1ek2hlfs-menu" role="menu" tabindex="0" id="example-qlz1ek2hlfs-menu" aria-hidden="true" wh-menu-anchor="left" aria-labelledby="example-qlz1ek2hlfs-label">
<li data-option data-value="all" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="true" id="example-qlz1ek2hlfs-item0">Option 1</a>
</li>
<li data-option data-value="cloudFoundry" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-qlz1ek2hlfs-item1">Option 2</a>
</li>
<li data-option data-value="staging" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-qlz1ek2hlfs-item2">Option 3</a>
</li>
<li data-option data-value="dea" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-qlz1ek2hlfs-item3">Option 4</a>
</li>
<li data-option data-value="router" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-qlz1ek2hlfs-item4">Option 5</a>
</li>
<li data-option data-value="loremipsum" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-qlz1ek2hlfs-item5">An example option that is really long to show what should be done to handle long text</a>
</li>
</ul>
</div>
</div>
</div>
<div class="bx--form-item">
<div class="bx--dropdown__wrapper ">
<span id="example-rzmbrltvfq-label" class="bx--label">Dropdown label</span>
<div class="bx--form__helper-text">Optional helper text here; if message is more than one line text
should wrap (~100 character count maximum)</div>
<div data-dropdown data-value
class="bx--dropdown ">
<button class="bx--dropdown-text" aria-haspopup="true" aria-expanded="false" aria-controls="example-rzmbrltvfq-menu" aria-labelledby="example-rzmbrltvfq-label example-rzmbrltvfq-value" type="button">
<span class="bx--dropdown-text__inner" id="example-rzmbrltvfq-value"> Dropdown option </span>
<span class="bx--dropdown__arrow-container">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--dropdown__arrow" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11L3 6l.7-.7L8 9.6l4.3-4.3.7.7z"></path></svg>
</span>
</button>
<ul class="bx--dropdown-list" role="menu" tabindex="0" id="example-rzmbrltvfq-menu" aria-hidden="true" wh-menu-anchor="left" aria-labelledby="example-rzmbrltvfq-label">
<li data-option data-value="all" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="true" id="example-rzmbrltvfq-item0">Option 1</a>
</li>
<li data-option data-value="cloudFoundry" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-rzmbrltvfq-item1">Option 2</a>
</li>
<li data-option data-value="staging" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-rzmbrltvfq-item2">Option 3</a>
</li>
<li data-option data-value="dea" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-rzmbrltvfq-item3">Option 4</a>
</li>
<li data-option data-value="router" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-rzmbrltvfq-item4">Option 5</a>
</li>
<li data-option data-value="loremipsum" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-rzmbrltvfq-item5">An example option that is really long to show what should be done to handle long text</a>
</li>
</ul>
</div>
</div>
</div>
<div class="bx--form-item">
<div class="bx--dropdown__wrapper ">
<span id="example-abon5kuvwea-label" class="bx--label bx--label--disabled" aria-disabled="true">Dropdown label</span>
<div class="bx--form__helper-text bx--form__helper-text--disabled" aria-disabled="true">Optional helper text
here; if message is more than one line text
should wrap (~100 character count maximum)</div>
<div data-dropdown data-value
class="bx--dropdown bx--dropdown--disabled">
<button disabled class="bx--dropdown-text" aria-haspopup="true" aria-expanded="false" aria-controls="example-abon5kuvwea-menu" aria-labelledby="example-abon5kuvwea-label example-abon5kuvwea-value" type="button">
<span class="bx--dropdown-text__inner" id="example-abon5kuvwea-value"> Dropdown option </span>
<span class="bx--dropdown__arrow-container">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--dropdown__arrow" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11L3 6l.7-.7L8 9.6l4.3-4.3.7.7z"></path></svg>
</span>
</button>
<!-- Note: remove `tabindex` from disabled dropdown lists -->
<ul class="bx--dropdown-list" id="example-abon5kuvwea-menu" role="menu" id="example-abon5kuvwea-menu" aria-hidden="true" wh-menu-anchor="left" aria-labelledby="example-abon5kuvwea-label">
<li data-option data-value="all" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="true" id="example-abon5kuvwea-item0">Option 1</a>
</li>
<li data-option data-value="cloudFoundry" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-abon5kuvwea-item1">Option 2</a>
</li>
<li data-option data-value="staging" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-abon5kuvwea-item2">Option 3</a>
</li>
<li data-option data-value="dea" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-abon5kuvwea-item3">Option 4</a>
</li>
<li data-option data-value="router" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-abon5kuvwea-item4">Option 5</a>
</li>
<li data-option data-value="loremipsum" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-abon5kuvwea-item5">An example option that is really long to show what should be done to handle long text</a>
</li>
</ul>
</div>
</div>
</div>
<div class="bx--form-item">
<div class="bx--dropdown__wrapper ">
<span id="example-1pbujkco76q-label" class="bx--label">Dropdown label</span>
<div class="bx--form__helper-text">Optional helper text
here; if message is more than one line text
should wrap (~100 character count maximum)</div>
<div data-dropdown data-value
class="bx--dropdown bx--dropdown--invalid "
data-invalid>
<button class="bx--dropdown-text" aria-haspopup="true" aria-expanded="false" aria-controls="example-1pbujkco76q-menu" aria-labelledby="example-1pbujkco76q-label example-1pbujkco76q-value" type="button">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--dropdown__invalid-icon" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 1C4.2 1 1 4.2 1 8s3.2 7 7 7 7-3.1 7-7-3.1-7-7-7zm-.5 3h1v5h-1V4zm.5 8.2c-.4 0-.8-.4-.8-.8s.3-.8.8-.8c.4 0 .8.4.8.8s-.4.8-.8.8z"></path><path d="M7.5 4h1v5h-1V4zm.5 8.2c-.4 0-.8-.4-.8-.8s.3-.8.8-.8c.4 0 .8.4.8.8s-.4.8-.8.8z" data-icon-path="inner-path" opacity="0"></path></svg>
<span class="bx--dropdown-text__inner" id="example-1pbujkco76q-value"> Dropdown option </span>
<span class="bx--dropdown__arrow-container">
<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform;" xmlns="http://www.w3.org/2000/svg" class="bx--dropdown__arrow" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true"><path d="M8 11L3 6l.7-.7L8 9.6l4.3-4.3.7.7z"></path></svg>
</span>
</button>
<ul class="bx--dropdown-list" id="example-1pbujkco76q-menu" role="menu" tabindex="0" id="example-1pbujkco76q-menu" aria-hidden="true" wh-menu-anchor="left" aria-labelledby="example-1pbujkco76q-label">
<li data-option data-value="all" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="true" id="example-1pbujkco76q-item0">Option 1</a>
</li>
<li data-option data-value="cloudFoundry" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-1pbujkco76q-item1">Option 2</a>
</li>
<li data-option data-value="staging" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-1pbujkco76q-item2">Option 3</a>
</li>
<li data-option data-value="dea" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-1pbujkco76q-item3">Option 4</a>
</li>
<li data-option data-value="router" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-1pbujkco76q-item4">Option 5</a>
</li>
<li data-option data-value="loremipsum" class="bx--dropdown-item">
<a class="bx--dropdown-link" href="javascript:void(0)" tabindex="-1" role="menuitemradio" aria-checked="false" id="example-1pbujkco76q-item5">An example option that is really long to show what should be done to handle long text</a>
</li>
</ul>
</div>
<div class="bx--form-requirement">
This is not a validation message
</div>
</div>
</div>