@ebay/skin 17.3.0 → 17.4.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/big-cheetahs-peel.md +5 -0
- package/.changeset/kind-pens-own.md +5 -0
- package/.changeset/loud-carrots-protect.md +5 -0
- package/.changeset/metal-cars-promise.md +5 -0
- package/.changeset/pre.json +16 -0
- package/.changeset/shaggy-ways-pump.md +5 -0
- package/.changeset/shaggy-yaks-guess.md +5 -0
- package/.changeset/soft-ligers-march.md +5 -0
- package/.github/workflows/jekyll-gh-pages.yml +8 -2
- package/.storybook/main.js +1 -1
- package/CHANGELOG.md +22 -0
- package/ICON-CREATION.md +1 -1
- package/_cdn/skin/v17.4.0-next.1/skin-default.min.css +76 -0
- package/_cdn/skin/v17.4.0-next.1/skin-full.min.css +160 -0
- package/_cdn/skin/v17.4.0-next.1/skin-headless.min.css +6 -0
- package/dist/flag/flag.css +774 -0
- package/dist/icon/icon.css +20 -0
- package/dist/icon-button/icon-button.css +113 -0
- package/dist/phone-input/phone-input.css +144 -0
- package/dist/skeleton/skeleton.css +6 -0
- package/dist/svg/icon/icon-bids-24.svg +4 -2
- package/dist/svg/icon/icon-bids-64.svg +2 -5
- package/dist/svg/icon/icon-bookmark-filled-16.svg +7 -0
- package/dist/svg/icon/icon-bookmark-filled-24.svg +7 -0
- package/dist/svg/icon/icon-exclude-16.svg +7 -0
- package/dist/svg/icon/icon-exclude-24.svg +7 -0
- package/dist/svg/icon/icon-fast-and-free-16.svg +4 -2
- package/dist/svg/icon/icon-fast-and-free-24.svg +4 -2
- package/dist/svg/icon/icon-inspect-64.svg +7 -0
- package/dist/svg/icon/icon-on-the-way-16.svg +4 -3
- package/dist/svg/icon/icon-on-the-way-24.svg +4 -2
- package/dist/svg/icon/icon-wallet-24.svg +4 -2
- package/dist/svg/icon/icon-wallet-64.svg +4 -2
- package/dist/svg/icons.svg +72 -27
- package/dist/tokens/evo-dark.css +14 -9
- package/dist/tokens/evo-light.css +13 -3
- package/eslint.config.mjs +15 -0
- package/index.browser.json +1 -0
- package/index.css +1 -0
- package/index.js +1 -0
- package/index.mjs +1 -0
- package/lint.log +10 -0
- package/package.json +17 -17
- package/phone-input.browser.json +1 -0
- package/phone-input.css +1 -0
- package/phone-input.js +1 -0
- package/phone-input.mjs +1 -0
- package/scripts/jekyll-config.js +2 -4
- package/src/less/alert-dialog/stories/alert-dialog.stories.js +16 -0
- package/src/less/badge/stories/badge.stories.js +4 -0
- package/src/less/breadcrumbs/stories/button-cascade.stories.js +29 -0
- package/src/less/breadcrumbs/stories/button-overflow.stories.js +48 -0
- package/src/less/breadcrumbs/stories/link-cascade.stories.js +29 -0
- package/src/less/breadcrumbs/stories/link-overflow.stories.js +51 -0
- package/src/less/bundles/skin-headless.less +1 -0
- package/src/less/button/stories/button/text-spacing.stories.js +16 -0
- package/src/less/button/stories/fake-button/text-spacing.stories.js +13 -0
- package/src/less/calendar/stories/calendar.stories.js +210 -0
- package/src/less/checkbox/stories/checked.stories.js +20 -0
- package/src/less/chips-combobox/stories/chips-combobox.stories.js +58 -0
- package/src/less/combobox/stories/combobox.stories.js +21 -0
- package/src/less/confirm-dialog/stories/confirm-dialog.stories.js +17 -0
- package/src/less/cta-button/stories/cta-button.stories.js +11 -0
- package/src/less/date-textbox/stories/date-textbox.stories.js +27 -0
- package/src/less/details/stories/details.stories.js +14 -0
- package/src/less/drawer-dialog/stories/drawer-dialog.stories.js +27 -0
- package/src/less/field/stories/helper-texts-stacked.stories.js +17 -0
- package/src/less/filter-button/stories/button.stories.js +8 -0
- package/src/less/filter-menu/stories/filter-menu.stories.js +41 -0
- package/src/less/filter-menu-button/stories/filter-menu-button.stories.js +238 -0
- package/src/less/flag/flag.less +777 -0
- package/src/less/flag/stories/flag.stories.js +9 -0
- package/src/less/floating-label/stories/floating-label.stories.js +102 -0
- package/src/less/fullscreen-dialog/stories/fullscreen-dialog.stories.js +27 -0
- package/src/less/global/stories/global.stories.js +16 -0
- package/src/less/icon/generated/icon.less +20 -0
- package/src/less/icon-button/icon-button.less +133 -0
- package/src/less/icon-button/stories/buttons.stories.js +241 -0
- package/src/less/icon-button/stories/links.stories.js +241 -0
- package/src/less/infotip/stories/infotip.stories.js +27 -2
- package/src/less/inline-notice/stories/inline.stories.js +13 -0
- package/src/less/lightbox-dialog/stories/lightbox-dialog.stories.js +24 -0
- package/src/less/link/stories/link.stories.js +9 -3
- package/src/less/listbox/stories/listbox.stories.js +37 -0
- package/src/less/listbox-button/stories/base.stories.js +42 -0
- package/src/less/menu/stories/misc.stories.js +10 -0
- package/src/less/menu-button/stories/base.stories.js +26 -0
- package/src/less/page-notice/stories/page-notice.stories.js +22 -0
- package/src/less/pagination/stories/overflow.stories.js +49 -0
- package/src/less/panel-dialog/stories/panel-dialog.stories.js +45 -0
- package/src/less/phone-input/phone-input.less +175 -0
- package/src/less/phone-input/stories/phone-input.stories.js +771 -0
- package/src/less/progress-bar-expressive/stories/progress-bar-expressive.stories.js +31 -0
- package/src/less/progress-stepper/stories/progress-stepper.stories.js +52 -0
- package/src/less/radio/stories/checked.stories.js +49 -2
- package/src/less/section-notice/stories/icon-16.stories.js +25 -1
- package/src/less/section-title/stories/section-title.stories.js +17 -0
- package/src/less/segmented-buttons/stories/segmented-buttons.stories.js +10 -0
- package/src/less/select/stories/default.stories.js +13 -0
- package/src/less/signal/stories/signal.stories.js +6 -0
- package/src/less/skeleton/skeleton.less +11 -0
- package/src/less/skeleton/stories/composite.stories.js +1 -1
- package/src/less/snackbar-dialog/stories/base.stories.js +14 -0
- package/src/less/split-button/stories/base.stories.js +30 -0
- package/src/less/tabs/stories/tabs/block.stories.js +17 -0
- package/src/less/tabs/stories/tabs/inlineBlock.stories.js +17 -0
- package/src/less/textbox/stories/textbox.stories.js +6 -0
- package/src/less/toast-dialog/stories/toast-dialog.stories.js +23 -0
- package/src/less/toggle-button/stories/gallery-layout.stories.js +13 -0
- package/src/less/toggle-button/stories/list-layout.stories.js +14 -0
- package/src/less/toggle-button/stories/minimal-layout.stories.js +8 -0
- package/src/less/tooltip/stories/tooltip.stories.js +19 -0
- package/src/less/tourtip/stories/tourtip.stories.js +21 -0
- package/src/svg/icon/icon-bids-24.svg +4 -2
- package/src/svg/icon/icon-bids-64.svg +2 -5
- package/src/svg/icon/icon-bookmark-filled-16.svg +7 -0
- package/src/svg/icon/icon-bookmark-filled-24.svg +7 -0
- package/src/svg/icon/icon-exclude-16.svg +7 -0
- package/src/svg/icon/icon-exclude-24.svg +7 -0
- package/src/svg/icon/icon-fast-and-free-16.svg +4 -2
- package/src/svg/icon/icon-fast-and-free-24.svg +4 -2
- package/src/svg/icon/icon-inspect-64.svg +7 -0
- package/src/svg/icon/icon-on-the-way-16.svg +4 -3
- package/src/svg/icon/icon-on-the-way-24.svg +4 -2
- package/src/svg/icon/icon-wallet-24.svg +4 -2
- package/src/svg/icon/icon-wallet-64.svg +4 -2
- package/src/svg/icons.svg +72 -27
- package/src/tokens/evo-dark.css +14 -9
- package/src/tokens/evo-light.css +13 -3
- package/svg.svg +72 -27
- package/.eslintrc +0 -14
- package/_cdn/skin/v17.3.0/skin-default.min.css +0 -69
- package/_cdn/skin/v17.3.0/skin-full.min.css +0 -151
- package/_cdn/skin/v17.3.0/skin-headless.min.css +0 -6
- package/src/less/section-notice/stories/icon-24.stories.js +0 -251
|
@@ -143,3 +143,54 @@ export const expanded = () => `
|
|
|
143
143
|
</ul>
|
|
144
144
|
</nav>
|
|
145
145
|
`;
|
|
146
|
+
|
|
147
|
+
export const textSpacing = () => `
|
|
148
|
+
<nav aria-labelledby="breadcrumbs-heading" class="breadcrumbs breadcrumb--overflow demo-a11y-text-spacing" role="navigation">
|
|
149
|
+
<h2 id="breadcrumbs-heading" class="clipped">You are here</h2>
|
|
150
|
+
<ul>
|
|
151
|
+
<li>
|
|
152
|
+
<a href="https://www.ebay.com/">ebay</a>
|
|
153
|
+
<svg class="icon icon--chevron-right-12" height="8" width="8" aria-hidden="true">
|
|
154
|
+
<use href="#icon-chevron-right-12"></use>
|
|
155
|
+
</svg>
|
|
156
|
+
</li>
|
|
157
|
+
<li>
|
|
158
|
+
<span class="fake-menu-button">
|
|
159
|
+
<button class="fake-menu-button__button icon-btn" aria-expanded="false" aria-haspopup="true" aria-label="eBay Menu" type="button">
|
|
160
|
+
<svg aria-hidden="true" class="icon icon--overflow-horizontal-16">
|
|
161
|
+
<use href="#icon-overflow-horizontal-16"></use>
|
|
162
|
+
</svg>
|
|
163
|
+
</button>
|
|
164
|
+
|
|
165
|
+
<ul class="fake-menu-button__menu">
|
|
166
|
+
|
|
167
|
+
<div role="menu" class="fake-menu-button__items">
|
|
168
|
+
<div class="fake-menu-button__item" role="menuitem" tabindex="-1">
|
|
169
|
+
<a href="https://www.ebay.com/rpp/cell-phone-pda">Cell Phones, Smart Watches & Accessories</a>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="fake-menu-button__item" role="menuitem" tabindex="-1">
|
|
172
|
+
<a href="https://www.ebay.com/b/Smart-Watch-Accessories/182064/bn_16565905">Smart Watch Accessories</a>
|
|
173
|
+
</div>
|
|
174
|
+
<div class="fake-menu-button__item" role="menuitem" tabindex="-1">
|
|
175
|
+
<a href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906">Smart Watch Bands</a>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
</ul>
|
|
179
|
+
</span>
|
|
180
|
+
|
|
181
|
+
<svg class="icon icon--chevron-right-12" height="8" width="8" aria-hidden="true">
|
|
182
|
+
<use href="#icon-chevron-right-12"></use>
|
|
183
|
+
</svg>
|
|
184
|
+
</li>
|
|
185
|
+
<li>
|
|
186
|
+
<a href="https://www.ebay.com/b/Smart-Watch-Bands/182068/bn_16565906/Some-Random-Watch-Pand2">Smart Watch Band Long Band Text Type 2</a>
|
|
187
|
+
<svg class="icon icon--chevron-right-12" height="8" width="8" aria-hidden="true">
|
|
188
|
+
<use href="#icon-chevron-right-12"></use>
|
|
189
|
+
</svg>
|
|
190
|
+
</li>
|
|
191
|
+
<li>
|
|
192
|
+
<a aria-current="location">Current Band</a>
|
|
193
|
+
</li>
|
|
194
|
+
</ul>
|
|
195
|
+
</nav>
|
|
196
|
+
`;
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
@import "../page-notice/page-notice.less";
|
|
44
44
|
@import "../pagination/pagination.less";
|
|
45
45
|
@import "../panel-dialog/panel-dialog.less";
|
|
46
|
+
@import "../phone-input/phone-input.less";
|
|
46
47
|
@import "../progress-bar/progress-bar.less";
|
|
47
48
|
@import "../progress-bar-expressive/progress-bar-expressive.less";
|
|
48
49
|
@import "../progress-spinner/progress-spinner.less";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default { title: "Skin/Button/Text Spacing" };
|
|
2
|
+
|
|
3
|
+
export const textOnly = () =>
|
|
4
|
+
'<button class="btn demo-a11y-text-spacing">Button</button>';
|
|
5
|
+
|
|
6
|
+
export const form = () =>
|
|
7
|
+
'<button class="btn btn--form demo-a11y-text-spacing">Button</button>';
|
|
8
|
+
|
|
9
|
+
export const iconAndText = () => `
|
|
10
|
+
<button type="button" class="btn demo-a11y-text-spacing">
|
|
11
|
+
<span class="btn__cell">
|
|
12
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
13
|
+
<span>Button</span>
|
|
14
|
+
</span>
|
|
15
|
+
</button>
|
|
16
|
+
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default { title: "Skin/Fake Button/Text Spacing" };
|
|
2
|
+
|
|
3
|
+
export const textOnly = () =>
|
|
4
|
+
'<a href="http://www.ebay/com" class="fake-btn demo-a11y-text-spacing">Fake Button</a>';
|
|
5
|
+
|
|
6
|
+
export const iconAndText = () => `
|
|
7
|
+
<a class="fake-btn demo-a11y-text-spacing" href="http://www.ebay.com">
|
|
8
|
+
<span class="fake-btn__cell">
|
|
9
|
+
<svg class="icon icon--settings-16" width="16" height="16"><use href="#icon-settings-16"></use></svg>
|
|
10
|
+
<span>Fake Button</span>
|
|
11
|
+
</span>
|
|
12
|
+
</a>
|
|
13
|
+
`;
|
|
@@ -507,6 +507,216 @@ export const header = () => /* HTML */ `
|
|
|
507
507
|
</div>
|
|
508
508
|
`;
|
|
509
509
|
|
|
510
|
+
export const textSpacing = () => `
|
|
511
|
+
<div class="calendar demo-a11y-text-spacing">
|
|
512
|
+
<div class="calendar__header">
|
|
513
|
+
<div class="calendar__header--inner">
|
|
514
|
+
<button
|
|
515
|
+
class="icon-btn icon-btn--small icon-btn--transparent"
|
|
516
|
+
aria-label="Previous Month - July 2019"
|
|
517
|
+
variant="icon"
|
|
518
|
+
>
|
|
519
|
+
<svg class="icon icon--chevron-left-24">
|
|
520
|
+
<use href="#icon-chevron-left-24"></use>
|
|
521
|
+
</svg>
|
|
522
|
+
</button>
|
|
523
|
+
<h3>August 2019</h3>
|
|
524
|
+
<button
|
|
525
|
+
class="icon-btn icon-btn--small icon-btn--transparent"
|
|
526
|
+
aria-label="Next Month - September 2019"
|
|
527
|
+
variant="icon"
|
|
528
|
+
>
|
|
529
|
+
<svg class="icon icon--chevron-right-24">
|
|
530
|
+
<use href="#icon-chevron-right-24"></use>
|
|
531
|
+
</svg>
|
|
532
|
+
</button>
|
|
533
|
+
</div>
|
|
534
|
+
</div>
|
|
535
|
+
<div class="calendar__body">
|
|
536
|
+
<div class="calendar__month">
|
|
537
|
+
<table>
|
|
538
|
+
<caption>
|
|
539
|
+
August 2019
|
|
540
|
+
</caption>
|
|
541
|
+
<thead>
|
|
542
|
+
<tr>
|
|
543
|
+
<th>Su</th>
|
|
544
|
+
<th>Mo</th>
|
|
545
|
+
<th>Tu</th>
|
|
546
|
+
<th>We</th>
|
|
547
|
+
<th>Th</th>
|
|
548
|
+
<th>Fr</th>
|
|
549
|
+
<th>Sa</th>
|
|
550
|
+
</tr>
|
|
551
|
+
</thead>
|
|
552
|
+
<tbody>
|
|
553
|
+
<tr>
|
|
554
|
+
<td colspan="4"></td>
|
|
555
|
+
<td>
|
|
556
|
+
<span class="calendar__cell--disabled"
|
|
557
|
+
>1<span class="clipped">
|
|
558
|
+
- inactive</span
|
|
559
|
+
></span
|
|
560
|
+
>
|
|
561
|
+
</td>
|
|
562
|
+
<td>
|
|
563
|
+
<span class="calendar__cell--disabled"
|
|
564
|
+
>2<span class="clipped">
|
|
565
|
+
- inactive</span
|
|
566
|
+
></span
|
|
567
|
+
>
|
|
568
|
+
</td>
|
|
569
|
+
<td>
|
|
570
|
+
<span class="calendar__cell--disabled"
|
|
571
|
+
>3<span class="clipped">
|
|
572
|
+
- inactive</span
|
|
573
|
+
></span
|
|
574
|
+
>
|
|
575
|
+
</td>
|
|
576
|
+
</tr>
|
|
577
|
+
<tr>
|
|
578
|
+
<td>
|
|
579
|
+
<span class="calendar__cell--disabled"
|
|
580
|
+
>4<span class="clipped">
|
|
581
|
+
- inactive</span
|
|
582
|
+
></span
|
|
583
|
+
>
|
|
584
|
+
</td>
|
|
585
|
+
<td>
|
|
586
|
+
<span class="calendar__cell--disabled"
|
|
587
|
+
>5<span class="clipped">
|
|
588
|
+
- inactive</span
|
|
589
|
+
></span
|
|
590
|
+
>
|
|
591
|
+
</td>
|
|
592
|
+
<td>
|
|
593
|
+
<span class="calendar__cell--disabled"
|
|
594
|
+
>6<span class="clipped">
|
|
595
|
+
- inactive</span
|
|
596
|
+
></span
|
|
597
|
+
>
|
|
598
|
+
</td>
|
|
599
|
+
<td>
|
|
600
|
+
<span class="calendar__cell--disabled"
|
|
601
|
+
>7<span class="clipped">
|
|
602
|
+
- inactive</span
|
|
603
|
+
></span
|
|
604
|
+
>
|
|
605
|
+
</td>
|
|
606
|
+
<td>
|
|
607
|
+
<span class="calendar__cell--disabled"
|
|
608
|
+
>8<span class="clipped">
|
|
609
|
+
- inactive</span
|
|
610
|
+
></span
|
|
611
|
+
>
|
|
612
|
+
</td>
|
|
613
|
+
<td>
|
|
614
|
+
<span class="calendar__cell--disabled"
|
|
615
|
+
>9<span class="clipped">
|
|
616
|
+
- inactive</span
|
|
617
|
+
></span
|
|
618
|
+
>
|
|
619
|
+
</td>
|
|
620
|
+
<td>
|
|
621
|
+
<span class="calendar__cell--disabled"
|
|
622
|
+
>10<span class="clipped">
|
|
623
|
+
- inactive</span
|
|
624
|
+
></span
|
|
625
|
+
>
|
|
626
|
+
</td>
|
|
627
|
+
</tr>
|
|
628
|
+
<tr>
|
|
629
|
+
<td>
|
|
630
|
+
<span class="calendar__cell--disabled"
|
|
631
|
+
>11<span class="clipped">
|
|
632
|
+
- inactive</span
|
|
633
|
+
></span
|
|
634
|
+
>
|
|
635
|
+
</td>
|
|
636
|
+
<td>
|
|
637
|
+
<span class="calendar__cell--disabled"
|
|
638
|
+
>12<span class="clipped">
|
|
639
|
+
- inactive</span
|
|
640
|
+
></span
|
|
641
|
+
>
|
|
642
|
+
</td>
|
|
643
|
+
<td>
|
|
644
|
+
<span class="calendar__cell--disabled"
|
|
645
|
+
>13<span class="clipped">
|
|
646
|
+
- inactive</span
|
|
647
|
+
></span
|
|
648
|
+
>
|
|
649
|
+
</td>
|
|
650
|
+
<td>
|
|
651
|
+
<span class="calendar__cell--current"
|
|
652
|
+
>14<span class="clipped">
|
|
653
|
+
- today</span
|
|
654
|
+
></span
|
|
655
|
+
>
|
|
656
|
+
</td>
|
|
657
|
+
<td><span>15</span></td>
|
|
658
|
+
<td><span>16</span></td>
|
|
659
|
+
<td><span>17</span></td>
|
|
660
|
+
</tr>
|
|
661
|
+
<tr>
|
|
662
|
+
<td><span>18</span></td>
|
|
663
|
+
<td><span>19</span></td>
|
|
664
|
+
<td><span>20</span></td>
|
|
665
|
+
<td><span>21</span></td>
|
|
666
|
+
<td><span>22</span></td>
|
|
667
|
+
<td
|
|
668
|
+
class="calendar__cell--selected calendar__range calendar__range--start"
|
|
669
|
+
>
|
|
670
|
+
<span
|
|
671
|
+
>23<span class="clipped">
|
|
672
|
+
- selected - start of range</span
|
|
673
|
+
></span
|
|
674
|
+
>
|
|
675
|
+
</td>
|
|
676
|
+
<td class="calendar__range">
|
|
677
|
+
<span
|
|
678
|
+
>24<span class="clipped">
|
|
679
|
+
- in range</span
|
|
680
|
+
></span
|
|
681
|
+
>
|
|
682
|
+
</td>
|
|
683
|
+
</tr>
|
|
684
|
+
<tr>
|
|
685
|
+
<td class="calendar__range">
|
|
686
|
+
<span
|
|
687
|
+
>25<span class="clipped">
|
|
688
|
+
- in range</span
|
|
689
|
+
></span
|
|
690
|
+
>
|
|
691
|
+
</td>
|
|
692
|
+
<td class="calendar__range">
|
|
693
|
+
<span
|
|
694
|
+
>26<span class="clipped">
|
|
695
|
+
- in range</span
|
|
696
|
+
></span
|
|
697
|
+
>
|
|
698
|
+
</td>
|
|
699
|
+
<td
|
|
700
|
+
class="calendar__cell--selected calendar__range calendar__range--end"
|
|
701
|
+
>
|
|
702
|
+
<span
|
|
703
|
+
>27<span class="clipped">
|
|
704
|
+
- selected - end of range</span
|
|
705
|
+
></span
|
|
706
|
+
>
|
|
707
|
+
</td>
|
|
708
|
+
<td><span>28</span></td>
|
|
709
|
+
<td><span>29</span></td>
|
|
710
|
+
<td><span>30</span></td>
|
|
711
|
+
<td><span>31</span></td>
|
|
712
|
+
</tr>
|
|
713
|
+
</tbody>
|
|
714
|
+
</table>
|
|
715
|
+
</div>
|
|
716
|
+
</div>
|
|
717
|
+
</div>
|
|
718
|
+
`;
|
|
719
|
+
|
|
510
720
|
export const double = () => /* HTML */ `
|
|
511
721
|
<div class="calendar">
|
|
512
722
|
<div class="calendar__body">
|
|
@@ -118,3 +118,23 @@ export const multiLineLabel = () => `
|
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
120
|
`;
|
|
121
|
+
|
|
122
|
+
export const textSpacing = () => `
|
|
123
|
+
<div class="demo-a11y-text-spacing">
|
|
124
|
+
<legend>Choose an Option</legend>
|
|
125
|
+
<div style="display: flex;" class="field">
|
|
126
|
+
<span class="checkbox field__control">
|
|
127
|
+
<input aria-label="Multiline checkbox 2" class="checkbox__control" id="group-checkbox-2" type="checkbox" value="2" name="checkbox-group" />
|
|
128
|
+
<span class="checkbox__icon" hidden>
|
|
129
|
+
<svg class="checkbox__unchecked" height="18" width="18">
|
|
130
|
+
<use href="#icon-checkbox-unchecked-18"></use>
|
|
131
|
+
</svg>
|
|
132
|
+
<svg class="checkbox__checked" height="18" width="18">
|
|
133
|
+
<use href="#icon-checkbox-checked-18"></use>
|
|
134
|
+
</svg>
|
|
135
|
+
</span>
|
|
136
|
+
</span>
|
|
137
|
+
<label class="field__label field__label--end" for="group-checkbox-2">Option 2</label>
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
`;
|
|
@@ -348,6 +348,64 @@ export const expanded = () => `
|
|
|
348
348
|
</span>
|
|
349
349
|
`;
|
|
350
350
|
|
|
351
|
+
export const textSpacing = () => `
|
|
352
|
+
<span class="chips-combobox demo-a11y-text-spacing">
|
|
353
|
+
<ul class="chips-combobox__items" aria-label="Selected sports">
|
|
354
|
+
<li>
|
|
355
|
+
<span class="chip">
|
|
356
|
+
<span id="chip-interactive-1-1-text" class="chip__text">Football</span>
|
|
357
|
+
<button class="chip__button" type="button" aria-label="Remove" aria-describedby="chip-interactive-1-1-text">
|
|
358
|
+
<svg class="icon icon--close-12" width="13" height="12" aria-hidden="true">
|
|
359
|
+
<use href="#icon-close-12"></use>
|
|
360
|
+
</svg>
|
|
361
|
+
</button>
|
|
362
|
+
</span>
|
|
363
|
+
</li>
|
|
364
|
+
<li>
|
|
365
|
+
<span class="chip">
|
|
366
|
+
<span id="chip-interactive-1-2-text" class="chip__text">Basketball</span>
|
|
367
|
+
<button class="chip__button" type="button" aria-label="Remove" aria-describedby="chip-interactive-1-2-text">
|
|
368
|
+
<svg class="icon icon--close-12" width="13" height="12" aria-hidden="true">
|
|
369
|
+
<use href="#icon-close-12"></use>
|
|
370
|
+
</svg>
|
|
371
|
+
</button>
|
|
372
|
+
</span>
|
|
373
|
+
</li>
|
|
374
|
+
<li>
|
|
375
|
+
<span class="chip">
|
|
376
|
+
<span id="chip-interactive-1-3-text" class="chip__text">Baseball</span>
|
|
377
|
+
<button class="chip__button" type="button" aria-label="Remove" aria-describedby="chip-interactive-1-3-text">
|
|
378
|
+
<svg class="icon icon--close-12" width="13" height="12" aria-hidden="true">
|
|
379
|
+
<use href="#icon-close-12"></use>
|
|
380
|
+
</svg>
|
|
381
|
+
</button>
|
|
382
|
+
</span>
|
|
383
|
+
</li>
|
|
384
|
+
</ul>
|
|
385
|
+
<span class="combobox combobox--js combobox--expanded chips-combobox__combobox">
|
|
386
|
+
<span class="combobox__control chips-combobox_combobox__control">
|
|
387
|
+
<input id="chips-combobox-1-input" role="combobox" type="text" placeholder="Add Sport" aria-haspopup="listbox" aria-owns="listbox-chips-combobox-1" />
|
|
388
|
+
<svg class="icon icon--chevron-down-16" height="16" width="16" aria-hidden="true">
|
|
389
|
+
<use href="#icon-chevron-down-16"></use>
|
|
390
|
+
</svg>
|
|
391
|
+
</span>
|
|
392
|
+
<div class="combobox__listbox">
|
|
393
|
+
<div id="listbox-chips-combobox-1" class="combobox__options" role="listbox">
|
|
394
|
+
<div class="combobox__option" role="option">
|
|
395
|
+
<span>Soccer</span>
|
|
396
|
+
</div>
|
|
397
|
+
<div class="combobox__option" role="option">
|
|
398
|
+
<span>Hockey</span>
|
|
399
|
+
</div>
|
|
400
|
+
<div class="combobox__option" role="option">
|
|
401
|
+
<span>Tennis</span>
|
|
402
|
+
</div>
|
|
403
|
+
</div>
|
|
404
|
+
</div>
|
|
405
|
+
</span>
|
|
406
|
+
</span>
|
|
407
|
+
`;
|
|
408
|
+
|
|
351
409
|
export const disabledState = () => `
|
|
352
410
|
<span class="chips-combobox" aria-disabled="true">
|
|
353
411
|
<ul class="chips-combobox__items" aria-label="Selected sports">
|
|
@@ -42,6 +42,27 @@ export const expanded = () => `
|
|
|
42
42
|
</span>
|
|
43
43
|
`;
|
|
44
44
|
|
|
45
|
+
export const textSpacing = () => `
|
|
46
|
+
<span class="combobox combobox--expanded demo-a11y-text-spacing">
|
|
47
|
+
<span class="combobox__control">
|
|
48
|
+
<input name="combobox-default" placeholder="Combobox" role="combobox" type="text" aria-expanded="true" aria-haspopup="listbox" />
|
|
49
|
+
<svg class="icon icon--chevron-down-12" height="8" width="8" aria-hidden="true">
|
|
50
|
+
<use href="#icon-chevron-down-12"></use>
|
|
51
|
+
</svg>
|
|
52
|
+
</span>
|
|
53
|
+
<div class="combobox__listbox">
|
|
54
|
+
<div id="listbox1" class="combobox__options" role="listbox">
|
|
55
|
+
<div class="combobox__option" role="option">
|
|
56
|
+
<span>Option 1</span>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="combobox__option" role="option">
|
|
59
|
+
<span>Option 2</span>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</span>
|
|
64
|
+
`;
|
|
65
|
+
|
|
45
66
|
export const disabled = () => `
|
|
46
67
|
<span class="combobox">
|
|
47
68
|
<span class="combobox__control">
|
|
@@ -16,3 +16,20 @@ export const base = () => `
|
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
`;
|
|
19
|
+
|
|
20
|
+
export const textSpacing = () => `
|
|
21
|
+
<div aria-labelledby="confirm-dialog-title" aria-modal="true" class="confirm-dialog confirm-dialog--mask-fade demo-a11y-text-spacing" role="dialog">
|
|
22
|
+
<div class="confirm-dialog__window confirm-dialog__window--fade">
|
|
23
|
+
<div class="confirm-dialog__header">
|
|
24
|
+
<h2 id="confirm-dialog-title" class="confirm-dialog__title">Delete Address?</h2>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="confirm-dialog__main">
|
|
27
|
+
<p id="confirm-dialog__description">You will permanently lose this address.</p>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="confirm-dialog__footer">
|
|
30
|
+
<button class="btn confirm-dialog__reject">Cancel</button>
|
|
31
|
+
<button class="btn btn--primary confirm-dialog__confirm" aria-describedby="confirm-dialog__description">Delete</button>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
`;
|
|
@@ -10,3 +10,14 @@ export const base = () => `
|
|
|
10
10
|
</span>
|
|
11
11
|
</a>
|
|
12
12
|
`;
|
|
13
|
+
|
|
14
|
+
export const textSpacing = () => `
|
|
15
|
+
<a class="cta-btn demo-a11y-text-spacing" href="http://www.ebay.com">
|
|
16
|
+
<span class="cta-btn__cell">
|
|
17
|
+
<span>Link</span>
|
|
18
|
+
<svg class="icon icon--arrow-right-24" height="8" width="8" aria-hidden="true">
|
|
19
|
+
<use href="#icon-arrow-right-24"></use>
|
|
20
|
+
</svg>
|
|
21
|
+
</span>
|
|
22
|
+
</a>
|
|
23
|
+
`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default { title: "Skin/Date Textbox" };
|
|
2
|
+
|
|
3
|
+
export const base = () => `
|
|
4
|
+
<span class="date-textbox">
|
|
5
|
+
<span class="textbox textbox--icon-end">
|
|
6
|
+
<input class="textbox__control" placeholder="YYYY-MM-DD" type="text" />
|
|
7
|
+
<button class="icon-btn icon-btn--transparent" type="button" aria-label="Calendar">
|
|
8
|
+
<svg aria-hidden="true" class="icon icon--calendar-24" width="16" height="16">
|
|
9
|
+
<use href="#icon-calendar-24"></use>
|
|
10
|
+
</svg>
|
|
11
|
+
</button>
|
|
12
|
+
</span>
|
|
13
|
+
</span>
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
export const textSpacing = () => `
|
|
17
|
+
<span class="date-textbox demo-a11y-text-spacing">
|
|
18
|
+
<span class="textbox textbox--icon-end">
|
|
19
|
+
<input class="textbox__control" placeholder="YYYY-MM-DD" type="text" />
|
|
20
|
+
<button class="icon-btn icon-btn--transparent" type="button" aria-label="Calendar">
|
|
21
|
+
<svg aria-hidden="true" class="icon icon--calendar-24" width="16" height="16">
|
|
22
|
+
<use href="#icon-calendar-24"></use>
|
|
23
|
+
</svg>
|
|
24
|
+
</button>
|
|
25
|
+
</span>
|
|
26
|
+
</span>
|
|
27
|
+
`;
|
|
@@ -28,6 +28,20 @@ export const open = () => `
|
|
|
28
28
|
</details>
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
|
+
export const textSpacing = () => `
|
|
32
|
+
<details class="details demo-a11y-text-spacing" open>
|
|
33
|
+
<summary class="details__summary">
|
|
34
|
+
<span class="details__label">Details</span>
|
|
35
|
+
<span class="details__icon" hidden>
|
|
36
|
+
<svg class="icon icon--chevron-down-12" aria-hidden="true">
|
|
37
|
+
<use href="#icon-chevron-down-12"></use>
|
|
38
|
+
</svg>
|
|
39
|
+
</span>
|
|
40
|
+
</summary>
|
|
41
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
42
|
+
</details>
|
|
43
|
+
`;
|
|
44
|
+
|
|
31
45
|
export const centered = () => `
|
|
32
46
|
<details class="details" open>
|
|
33
47
|
<summary class="details__summary details__summary--center">
|
|
@@ -68,6 +68,33 @@ export const withFooter = () => `
|
|
|
68
68
|
</div>
|
|
69
69
|
`;
|
|
70
70
|
|
|
71
|
+
export const textSpacing = () => `
|
|
72
|
+
<div aria-labelledby="drawer-dialog-title" aria-modal="true" class="drawer-dialog drawer-dialog--mask-fade-slow demo-a11y-text-spacing" role="dialog">
|
|
73
|
+
<div class="drawer-dialog__window drawer-dialog__window--slide">
|
|
74
|
+
<button class="drawer-dialog__handle"></button>
|
|
75
|
+
<div class="drawer-dialog__header">
|
|
76
|
+
<h2 id="dialog-title" class="large-text-1 bold-text">Heading</h2>
|
|
77
|
+
<button aria-label="Close dialog" class="icon-btn drawer-dialog__close" type="button">
|
|
78
|
+
<svg aria-hidden="true" class="icon icon--close-16" height="16" width="16">
|
|
79
|
+
<use href="#icon-close-16"></use>
|
|
80
|
+
</svg>
|
|
81
|
+
</button>
|
|
82
|
+
</div>
|
|
83
|
+
<div class="drawer-dialog__main">
|
|
84
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
|
85
|
+
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
86
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
87
|
+
</p>
|
|
88
|
+
<p><a href="http://www.ebay.com">www.ebay.com</a></p>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="drawer-dialog__footer">
|
|
91
|
+
<button class="btn">Cancel</button>
|
|
92
|
+
<button class="btn btn--primary">Submit</button>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
`;
|
|
97
|
+
|
|
71
98
|
export const RTL = () => `
|
|
72
99
|
<div dir="rtl">
|
|
73
100
|
<div aria-labelledby="drawer-dialog-title" aria-modal="true" class="drawer-dialog drawer-dialog--mask-fade-slow" role="dialog">
|
|
@@ -67,6 +67,23 @@ export const fluidDescriptionCharacterMeter = () => `
|
|
|
67
67
|
</div>
|
|
68
68
|
`;
|
|
69
69
|
|
|
70
|
+
export const textSpacing = () => `
|
|
71
|
+
<div class="field fluid demo-a11y-text-spacing">
|
|
72
|
+
<label class="field__label field__label--stacked" for="field-character-3-input">Field 1</label>
|
|
73
|
+
<div class="field__control textbox">
|
|
74
|
+
<input type="text" aria-describedby="field-character-3-description field-character-1" class="textbox__control textbox__control--fluid" id="field-character-3-input" aria-live="off" />
|
|
75
|
+
</div>
|
|
76
|
+
<div class="field__description field__description--group">
|
|
77
|
+
<span id="field-character-1-description">
|
|
78
|
+
Field description or error
|
|
79
|
+
</span>
|
|
80
|
+
<span id="field-character-1">
|
|
81
|
+
0 of 140
|
|
82
|
+
</span>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
`;
|
|
86
|
+
|
|
70
87
|
export const RTL = () => `
|
|
71
88
|
<div dir="rtl">
|
|
72
89
|
<span class="field ">
|
|
@@ -25,3 +25,11 @@ export const disabled = () => `
|
|
|
25
25
|
<span class="filter-button__cell">Button</span>
|
|
26
26
|
</button>
|
|
27
27
|
`;
|
|
28
|
+
|
|
29
|
+
export const textSpacing = () => `
|
|
30
|
+
<button type="button" class="filter-button demo-a11y-text-spacing">
|
|
31
|
+
<span class="filter-button__cell">
|
|
32
|
+
<span class="filter-button__text">Button</span>
|
|
33
|
+
</span>
|
|
34
|
+
</button>
|
|
35
|
+
`;
|
|
@@ -121,6 +121,47 @@ export const withFooterButton = () => `
|
|
|
121
121
|
</span>
|
|
122
122
|
`;
|
|
123
123
|
|
|
124
|
+
export const textSpacing = () => `
|
|
125
|
+
<span class="filter-menu demo-a11y-text-spacing">
|
|
126
|
+
<div class="filter-menu__items" role="menu">
|
|
127
|
+
<div class="filter-menu__item" role="menuitemcheckbox" tabindex="0" aria-checked="false">
|
|
128
|
+
<span class="filter-menu__checkbox">
|
|
129
|
+
<svg class="icon icon--checkbox-unchecked-18" height="18" width="18">
|
|
130
|
+
<use href="#icon-checkbox-unchecked-18"></use>
|
|
131
|
+
</svg>
|
|
132
|
+
<svg class="icon icon--checkbox-checked-18" height="18" width="18">
|
|
133
|
+
<use href="#icon-checkbox-checked-18"></use>
|
|
134
|
+
</svg>
|
|
135
|
+
</span>
|
|
136
|
+
<span class="filter-menu__text">Item 1 with a long string that will wrap to another line</span>
|
|
137
|
+
</div>
|
|
138
|
+
<div class="filter-menu__item" role="menuitemcheckbox" aria-checked="false">
|
|
139
|
+
<span class="filter-menu__checkbox">
|
|
140
|
+
<svg class="icon icon--checkbox-unchecked-18" height="18" width="18">
|
|
141
|
+
<use href="#icon-checkbox-unchecked-18"></use>
|
|
142
|
+
</svg>
|
|
143
|
+
<svg class="icon icon--checkbox-checked-18" height="18" width="18">
|
|
144
|
+
<use href="#icon-checkbox-checked-18"></use>
|
|
145
|
+
</svg>
|
|
146
|
+
</span>
|
|
147
|
+
<span class="filter-menu__text">Item 2</span>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="filter-menu__item" role="menuitemcheckbox" aria-checked="false">
|
|
150
|
+
<span class="filter-menu__checkbox">
|
|
151
|
+
<svg class="icon icon--checkbox-unchecked-18" height="18" width="18">
|
|
152
|
+
<use href="#icon-checkbox-unchecked-18"></use>
|
|
153
|
+
</svg>
|
|
154
|
+
<svg class="icon icon--checkbox-checked-18" height="18" width="18">
|
|
155
|
+
<use href="#icon-checkbox-checked-18"></use>
|
|
156
|
+
</svg>
|
|
157
|
+
</span>
|
|
158
|
+
<span class="filter-menu__text">Item 3</span>
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
<button type="button" class="filter-menu__footer">Apply</button>
|
|
162
|
+
</span>
|
|
163
|
+
`;
|
|
164
|
+
|
|
124
165
|
export const formVersion = () => `
|
|
125
166
|
<span class="filter-menu-form">
|
|
126
167
|
<form name="filter-menu-form-1">
|