-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WNMGDS-622] Update inverse examples (#813)
* Add inverse examples to all form examples, make html and react examples consistent * Example tweaks * backstop update * Update packages/design-system-docs/src/pages/components/FormLabel/form-label.example.html Co-authored-by: Scott Weber <[email protected]> * Update packages/design-system-docs/src/pages/components/DateField/datefield.example.html Co-authored-by: Ni Chia <[email protected]> * Update dropdown labels * Fix choice e2e test Co-authored-by: Scott Weber <[email protected]> Co-authored-by: Ni Chia <[email protected]>
- Loading branch information
1 parent
c4a3546
commit 33d9a59
Showing
55 changed files
with
388 additions
and
228 deletions.
There are no files selected for viewing
Binary file modified
BIN
+2 Bytes
(100%)
.../backstop_default_CMSDS_-_Components_-_Button_-_Default_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
...backstop_default_CMSDS_-_Components_-_Button_-_Default_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.78 KB
(94%)
...efault_CMSDS_-_Components_-_Checkbox__Radio_-_ChoiceList_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.09 KB
(94%)
...fault_CMSDS_-_Components_-_Checkbox__Radio_-_ChoiceList_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.51 KB
(94%)
...ault_CMSDS_-_Components_-_Checkbox__Radio_-_ChoiceList_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+83 Bytes
(100%)
...p_default_CMSDS_-_Components_-_Checkbox__Radio_-_Default_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+55 Bytes
(100%)
..._default_CMSDS_-_Components_-_Checkbox__Radio_-_Default_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+98 Bytes
(100%)
...default_CMSDS_-_Components_-_Checkbox__Radio_-_Default_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19.1 KB
(260%)
...ackstop_default_CMSDS_-_Components_-_Datefield_-_Default_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+19.5 KB
(230%)
...ckstop_default_CMSDS_-_Components_-_Datefield_-_Default_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+20.8 KB
(200%)
...kstop_default_CMSDS_-_Components_-_Datefield_-_Default_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.81 KB
(120%)
.../backstop_default_CMSDS_-_Components_-_Datefield_-_React_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.74 KB
(120%)
...backstop_default_CMSDS_-_Components_-_Datefield_-_React_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.9 KB
(120%)
...ackstop_default_CMSDS_-_Components_-_Datefield_-_React_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.07 KB
(120%)
...backstop_default_CMSDS_-_Components_-_Dropdown_-_Default_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.41 KB
(120%)
...ackstop_default_CMSDS_-_Components_-_Dropdown_-_Default_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.02 KB
(120%)
...ckstop_default_CMSDS_-_Components_-_Dropdown_-_Default_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.18 KB
(120%)
...e/backstop_default_CMSDS_-_Components_-_Dropdown_-_React_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+5.95 KB
(110%)
.../backstop_default_CMSDS_-_Components_-_Dropdown_-_React_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+6.24 KB
(110%)
...backstop_default_CMSDS_-_Components_-_Dropdown_-_React_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.31 KB
(140%)
...efault_CMSDS_-_Components_-_Form_label__legend_-_Default_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.48 KB
(140%)
...fault_CMSDS_-_Components_-_Form_label__legend_-_Default_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.21 KB
(130%)
...ault_CMSDS_-_Components_-_Form_label__legend_-_Default_0_document_2_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.14 KB
(140%)
..._default_CMSDS_-_Components_-_Form_label__legend_-_React_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.31 KB
(140%)
...default_CMSDS_-_Components_-_Form_label__legend_-_React_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.06 KB
(130%)
...efault_CMSDS_-_Components_-_Form_label__legend_-_React_0_document_2_desktop.png
Oops, something went wrong.
Binary file modified
BIN
-5.85 KB
(95%)
...stop_default_CMSDS_-_Components_-_Help_drawer_-_Default_0_document_1_tablet.png
Oops, something went wrong.
Binary file modified
BIN
-3.79 KB
(88%)
...ckstop_default_CMSDS_-_Components_-_Masked_Field_-_React_0_document_0_phone.png
Oops, something went wrong.
Binary file modified
BIN
-4.46 KB
(88%)
...kstop_default_CMSDS_-_Components_-_Masked_Field_-_React_0_document_1_tablet.png
Oops, something went wrong.
Binary file modified
BIN
-4.31 KB
(90%)
...stop_default_CMSDS_-_Components_-_Masked_Field_-_React_0_document_2_desktop.png
Oops, something went wrong.
Binary file modified
BIN
-5.45 KB
(91%)
...ckstop_default_CMSDS_-_Components_-_Month_Picker_-_React_0_document_0_phone.png
Oops, something went wrong.
Binary file modified
BIN
-4.48 KB
(93%)
...kstop_default_CMSDS_-_Components_-_Month_Picker_-_React_0_document_1_tablet.png
Oops, something went wrong.
Binary file modified
BIN
-4.73 KB
(93%)
...stop_default_CMSDS_-_Components_-_Month_Picker_-_React_0_document_2_desktop.png
Oops, something went wrong.
Binary file modified
BIN
-805 Bytes
(98%)
...ackstop_default_CMSDS_-_Components_-_Textfield_-_Default_0_document_0_phone.png
Oops, something went wrong.
Binary file modified
BIN
+497 Bytes
(100%)
...ckstop_default_CMSDS_-_Components_-_Textfield_-_Default_0_document_1_tablet.png
Oops, something went wrong.
Binary file modified
BIN
+92 Bytes
(100%)
...kstop_default_CMSDS_-_Components_-_Textfield_-_Default_0_document_2_desktop.png
Oops, something went wrong.
Binary file modified
BIN
+7.63 KB
(120%)
.../backstop_default_CMSDS_-_Components_-_Textfield_-_React_0_document_0_phone.png
Oops, something went wrong.
Binary file modified
BIN
+8.97 KB
(120%)
...backstop_default_CMSDS_-_Components_-_Textfield_-_React_0_document_1_tablet.png
Oops, something went wrong.
Binary file modified
BIN
+7.03 KB
(120%)
...ackstop_default_CMSDS_-_Components_-_Textfield_-_React_0_document_2_desktop.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
177 changes: 124 additions & 53 deletions
177
packages/design-system-docs/src/pages/components/DateField/datefield.example.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,126 @@ | ||
<fieldset class="ds-c-fieldset"> | ||
<legend class="ds-c-label" id="dob-datefield"> | ||
<span class="ds-u-font-weight--bold">Date of birth</span> | ||
<span class="ds-c-field__hint">For example: 4 / 28 / 1986</span> | ||
</legend> | ||
<div class="ds-l-form-row ds-u-align-items--end"> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="month" | ||
><span>Month</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--month" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="month" | ||
name="birthdate[month]" | ||
autocomplete="bday-month" | ||
aria-describedby="dob-datefield" | ||
/> | ||
</div> | ||
<span class="ds-c-datefield__separator">/</span> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="day" | ||
><span>Day</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--day" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="day" | ||
name="birthdate[day]" | ||
autocomplete="bday-day" | ||
aria-describedby="dob-datefield" | ||
/> | ||
</div> | ||
<span class="ds-c-datefield__separator">/</span> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="year" | ||
><span>Year</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--year" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="year" | ||
name="birthdate[year]" | ||
autocomplete="bday-year" | ||
aria-describedby="dob-datefield" | ||
/> | ||
<div class="example--wrapper"> | ||
<fieldset class="ds-c-fieldset"> | ||
<legend class="ds-c-label" id="dob-datefield"> | ||
<span class="ds-u-font-weight--bold">Date of birth</span> | ||
<span class="ds-c-field__hint">For example: 4 / 28 / 1986</span> | ||
<span class="ds-c-field__hint ds-u-color--error" role="alert"> | ||
Please enter a year in the past | ||
</span> | ||
</legend> | ||
<div class="ds-l-form-row ds-u-align-items--end"> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="month" | ||
><span>Month</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--month" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="month" | ||
name="birthdate[month]" | ||
autocomplete="bday-month" | ||
aria-describedby="dob-datefield" | ||
value="10" | ||
/> | ||
</div> | ||
<span class="ds-c-datefield__separator">/</span> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="day" | ||
><span>Day</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--day" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="day" | ||
name="birthdate[day]" | ||
autocomplete="bday-day" | ||
aria-describedby="dob-datefield" | ||
value="31" | ||
/> | ||
</div> | ||
<span class="ds-c-datefield__separator">/</span> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="year" | ||
><span>Year</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--error ds-c-field--year" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="year" | ||
name="birthdate[year]" | ||
autocomplete="bday-year" | ||
aria-describedby="dob-datefield" | ||
value="2050" | ||
/> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<div class="example--wrapper example--inverse"> | ||
<fieldset class="ds-c-fieldset"> | ||
<legend class="ds-c-label" id="dob-datefield"> | ||
<span class="ds-u-font-weight--bold">Inverse example</span> | ||
<span class="ds-c-field__hint ds-c-field__hint--inverse">For example: 4 / 28 / 1986</span> | ||
<span class="ds-c-field__hint ds-u-color--error-light" role="alert"> | ||
Please enter a year in the past | ||
</span> | ||
</legend> | ||
<div class="ds-l-form-row ds-u-align-items--end"> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="month" | ||
><span>Month</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--month" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="month" | ||
name="birthdate[month]" | ||
autocomplete="bday-month" | ||
aria-describedby="dob-datefield" | ||
value="10" | ||
/> | ||
</div> | ||
<span class="ds-c-datefield__separator">/</span> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="day" | ||
><span>Day</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--day" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="day" | ||
name="birthdate[day]" | ||
autocomplete="bday-day" | ||
aria-describedby="dob-datefield" | ||
value="31" | ||
/> | ||
</div> | ||
<span class="ds-c-datefield__separator">/</span> | ||
<div class="ds-l-col--auto"> | ||
<label class="ds-c-label ds-u-font-weight--normal ds-u-margin-top--1" for="year" | ||
><span>Year</span></label | ||
> | ||
<input | ||
class="ds-c-field ds-c-field--error ds-c-field--year" | ||
type="text" | ||
inputmode="numeric" | ||
pattern="[0-9]*" | ||
id="year" | ||
name="birthdate[year]" | ||
autocomplete="bday-year" | ||
aria-describedby="dob-datefield" | ||
value="2050" | ||
/> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</div> | ||
</fieldset> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.