-
Notifications
You must be signed in to change notification settings - Fork 829
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(checkbox-button-group): Add test (#3023) * chore(checkbox-button-group): Add test * chore(checkbox-button-group): skip tests * chore(checkbox-toggle): Add test (#3029) * chore(checkbox-toggle): Add test * chore(checkbox-toggle): skip tests until min/max height issue is fixed * chore(checkbox-toggle): change component names * chore(tokens): add scope flag to components (#3044)
- Loading branch information
Showing
83 changed files
with
311 additions
and
7 deletions.
There are no files selected for viewing
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
category: "line-height" | ||
type: number | ||
cssProperties: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
category: spacing | ||
type: size | ||
comment: '' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
31 changes: 31 additions & 0 deletions
31
...heckbox-button-group/__tests__/__snapshots__/renders_a_default_checkbox_button_group.json
Large diffs are not rendered by default.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
...ton-group/__tests__/__snapshots__/renders_a_default_checkbox_button_group_with_error.json
Large diffs are not rendered by default.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...eckbox-button-group/__tests__/__snapshots__/renders_a_disabled_checkbox_button_group.json
Large diffs are not rendered by default.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
ui/components/checkbox-button-group/__tests__/index.spec.js
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* eslint-env jest */ | ||
import React from 'react'; | ||
import { Checkbox, CheckboxGroup, Fieldset } from '../base/example'; | ||
|
||
import createHelpers from '../../../../jest.setup'; | ||
|
||
const { matchesMarkupAndStyle } = createHelpers(__dirname); | ||
|
||
xit('renders a default checkbox button group', () => | ||
matchesMarkupAndStyle( | ||
<Fieldset> | ||
<CheckboxGroup> | ||
<Checkbox id="monday">Mon</Checkbox> | ||
<Checkbox id="tuesday">Tue</Checkbox> | ||
<Checkbox id="wednesday">Wed</Checkbox> | ||
<Checkbox id="thursday">Thu</Checkbox> | ||
<Checkbox id="friday">Fri</Checkbox> | ||
</CheckboxGroup> | ||
</Fieldset> | ||
)); | ||
|
||
xit('renders a default checkbox button group with error', () => | ||
matchesMarkupAndStyle( | ||
<Fieldset className="slds-has-error"> | ||
<CheckboxGroup> | ||
<Checkbox errorId="error_01" id="monday"> | ||
Mon | ||
</Checkbox> | ||
<Checkbox errorId="error_01" id="tuesday"> | ||
Tue | ||
</Checkbox> | ||
<Checkbox errorId="error_01" id="wednesday"> | ||
Wed | ||
</Checkbox> | ||
<Checkbox errorId="error_01" id="thursday"> | ||
Thu | ||
</Checkbox> | ||
<Checkbox errorId="error_01" id="friday"> | ||
Fri | ||
</Checkbox> | ||
</CheckboxGroup> | ||
<div id="error_01" className="slds-form-element__help"> | ||
This field is required | ||
</div> | ||
</Fieldset> | ||
)); | ||
|
||
xit('renders a disabled checkbox button group', () => | ||
matchesMarkupAndStyle( | ||
<Fieldset> | ||
<CheckboxGroup> | ||
<Checkbox id="monday" disabled="true"> | ||
Mon | ||
</Checkbox> | ||
<Checkbox id="tuesday" disabled="true"> | ||
Tue | ||
</Checkbox> | ||
<Checkbox id="wednesday" disabled="true"> | ||
Wed | ||
</Checkbox> | ||
<Checkbox id="thursday" disabled="true"> | ||
Thu | ||
</Checkbox> | ||
<Checkbox id="friday" disabled="true"> | ||
Fri | ||
</Checkbox> | ||
</CheckboxGroup> | ||
</Fieldset> | ||
)); |
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
16 changes: 16 additions & 0 deletions
16
ui/components/checkbox-toggle/__tests__/__snapshots__/renders_a_checked_checkbox_toggle.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
ui/components/checkbox-toggle/__tests__/__snapshots__/renders_a_default_checkbox_toggle.json
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...omponents/checkbox-toggle/__tests__/__snapshots__/renders_a_disabled_checkbox_toggle.json
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* eslint-env jest */ | ||
import React from 'react'; | ||
import { | ||
CheckboxToggle, | ||
CheckboxToggleChecked, | ||
CheckboxToggleDisabled | ||
} from '../base/example'; | ||
|
||
import createHelpers from '../../../../jest.setup'; | ||
|
||
const { matchesMarkupAndStyle } = createHelpers(__dirname); | ||
|
||
xit('renders a default checkbox toggle', () => | ||
matchesMarkupAndStyle(<CheckboxToggle />)); | ||
|
||
xit('renders a checked checkbox toggle', () => | ||
matchesMarkupAndStyle(<CheckboxToggleChecked />)); | ||
|
||
xit('renders a disabled checkbox toggle', () => | ||
matchesMarkupAndStyle(<CheckboxToggleDisabled />)); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
category: line-height | ||
type: number | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: size | ||
category: sizing | ||
cssProperties: | ||
|
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
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
category: spacing | ||
type: size | ||
comment: '' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: size | ||
category: sizing | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: color | ||
category: background-color | ||
cssProperties: | ||
|
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,4 +1,5 @@ | ||
global: | ||
scope: component | ||
type: shadow | ||
category: text-shadow | ||
cssProperties: | ||
|
Oops, something went wrong.