Skip to content

Commit

Permalink
fix(utils): add checked prop to Tag prop list
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Jun 14, 2018
1 parent d47c2f4 commit 29ae097
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/Tag/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type TagProps = {|
|};

const COLLECTED_PROPS = [
'checked',
'children',
'className',
'cols',
Expand Down
18 changes: 18 additions & 0 deletions storybook/__tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with check 1`] = `
className="emotion-2"
>
<div
checked={true}
className="emotion-1"
>
<div
Expand All @@ -1474,6 +1475,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with check 1`] = `
</div>
</div>
<input
checked={true}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -1571,6 +1573,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with disabled 1`] = `
className="emotion-2"
>
<div
checked={true}
className="emotion-1"
>
<div
Expand All @@ -1591,6 +1594,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with disabled 1`] = `
</div>
</div>
<input
checked={true}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -1688,6 +1692,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with error 1`] = `
className="emotion-2"
>
<div
checked={true}
className="emotion-1"
>
<div
Expand All @@ -1708,6 +1713,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with error 1`] = `
</div>
</div>
<input
checked={true}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -1804,6 +1810,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with state 1`] = `
className="emotion-2"
>
<div
checked={false}
className="emotion-1"
>
<div
Expand All @@ -1824,6 +1831,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox with state 1`] = `
</div>
</div>
<input
checked={false}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -1920,6 +1928,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox without label 1`] = `
className="emotion-2"
>
<div
checked={true}
className="emotion-1"
>
<div
Expand All @@ -1940,6 +1949,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox without label 1`] = `
</div>
</div>
<input
checked={true}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -2034,6 +2044,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox without secondary color 1`] = `
className="emotion-2"
>
<div
checked={true}
className="emotion-1"
>
<div
Expand All @@ -2054,6 +2065,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Checkbox without secondary color 1`] = `
</div>
</div>
<input
checked={true}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -2170,6 +2182,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/CheckboxField default 1`] = `
className="emotion-2"
>
<div
checked={false}
className="emotion-1"
>
<div
Expand All @@ -2190,6 +2203,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/CheckboxField default 1`] = `
</div>
</div>
<input
checked={false}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -2307,6 +2321,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/CheckboxField with checked 1`] = `
className="emotion-2"
>
<div
checked={true}
className="emotion-1"
>
<div
Expand All @@ -2327,6 +2342,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/CheckboxField with checked 1`] = `
</div>
</div>
<input
checked={true}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down Expand Up @@ -2459,6 +2475,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/CheckboxField with error 1`] = `
className="emotion-2"
>
<div
checked={false}
className="emotion-1"
>
<div
Expand All @@ -2479,6 +2496,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/CheckboxField with error 1`] = `
</div>
</div>
<input
checked={false}
className="emotion-3"
onChange={[Function]}
type="checkbox"
Expand Down

0 comments on commit 29ae097

Please sign in to comment.