Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix checkbox and radio styles #441

Merged
merged 2 commits into from
Jan 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 40 additions & 35 deletions packages/clay-card/src/__tests__/__snapshots__/ClayFileCard.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,14 @@ exports[`ClayFileCard should render a selectable ClayFileCard 1`] = `
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
<span class="custom-control-label">
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -594,13 +595,14 @@ exports[`ClayFileCard should render a selectable ClayFileCard with input \`name\
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" name="checkbox01" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
<span class="custom-control-label">
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -622,13 +624,14 @@ exports[`ClayFileCard should render a selectable ClayFileCard with input \`value
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" value="checkbox" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
<span class="custom-control-label">
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -650,13 +653,14 @@ exports[`ClayFileCard should render a selectable disabled ClayFileCard 1`] = `
<div class="custom-control custom-checkbox">
<label>
<input disabled="disabled" class="custom-control-input" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
<span class="custom-control-label">
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -678,13 +682,14 @@ exports[`ClayFileCard should render a selectable selected ClayFileCard 1`] = `
<div class="custom-control custom-checkbox">
<label>
<input checked="" class="custom-control-input" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
<span class="custom-control-label">
<div class="aspect-ratio-item-center-middle aspect-ratio-item-fluid card-type-asset-icon">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-documents-and-media">
<title>documents-and-media</title>
<use xlink:href="icons.svg#documents-and-media"></use>
</svg>
</div>
</span>
</label>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,25 @@ exports[`ClayHorizontalCard should render a disabled ClayHorizontalCard 1`] = `
<div class="custom-control custom-checkbox">
<label>
<input disabled="disabled" class="custom-control-input" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
<span class="custom-control-label">
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
</span>
</span>
</span>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
</div>
</div>
</div>
</div>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -153,24 +154,25 @@ exports[`ClayHorizontalCard should render a selectable ClayHorizontalCard 1`] =
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
<span class="custom-control-label">
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
</span>
</span>
</span>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
</div>
</div>
</div>
</div>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -181,24 +183,25 @@ exports[`ClayHorizontalCard should render a selectable ClayHorizontalCard with i
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" name="checkbox01" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
<span class="custom-control-label">
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
</span>
</span>
</span>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
</div>
</div>
</div>
</div>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -209,24 +212,25 @@ exports[`ClayHorizontalCard should render a selectable ClayHorizontalCard with i
<div class="custom-control custom-checkbox">
<label>
<input class="custom-control-input" value="checkbox" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
<span class="custom-control-label">
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
</span>
</span>
</span>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
</div>
</div>
</div>
</div>
</div>
</span>
</label>
</div>
</div>
Expand All @@ -237,24 +241,25 @@ exports[`ClayHorizontalCard should render a selected ClayHorizontalCard 1`] = `
<div class="custom-control custom-checkbox">
<label>
<input checked="" class="custom-control-input" ref="input" type="checkbox">
<span class="custom-control-label"></span>
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
<span class="custom-control-label">
<div class="card card-horizontal">
<div class="card-body">
<div class="card-row">
<span class="sticker sticker-unstyled">
<span class="sticker-overlay">
<svg aria-hidden="true" class="lexicon-icon lexicon-icon-folder">
<title>folder</title>
<use xlink:href="icons.svg#folder"></use>
</svg>
</span>
</span>
</span>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
<div class="autofit-col autofit-col-expand autofit-col-gutters">
<div class="card-title text-truncate" title="My Title">My Title</div>
</div>
</div>
</div>
</div>
</div>
</span>
</label>
</div>
</div>
Expand Down
Loading