Skip to content

Commit

Permalink
feat(@clayui/css): Cards form-check-card checkbox/radio input shoul…
Browse files Browse the repository at this point in the history
…d be hidden unless position utilities are used

fixes liferay#4544
  • Loading branch information
pat270 committed Jan 5, 2022
1 parent b1302ac commit 55f4e8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/clay-css/src/scss/components/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@
}

.custom-control-label {
opacity: 0;
position: absolute;
z-index: 1;

Expand All @@ -603,6 +604,7 @@
.form-check-input {
margin-left: 0;
margin-top: 0;
opacity: 0;
position: absolute;
z-index: 1;
}
Expand Down Expand Up @@ -665,6 +667,7 @@
.form-check-input {
bottom: $checkbox-position;
left: $checkbox-position;
opacity: 1;
top: auto;
transform: none;
}
Expand All @@ -676,6 +679,7 @@
.form-check-input {
bottom: $checkbox-position;
left: auto;
opacity: 1;
right: $checkbox-position;
top: auto;
transform: none;
Expand All @@ -688,6 +692,7 @@
.form-check-input {
left: $checkbox-position;
margin-top: 0;
opacity: 1;
top: 50%;
transform: translateY(-50%);
}
Expand All @@ -699,6 +704,7 @@
.form-check-input {
left: auto;
margin-top: 0;
opacity: 1;
right: $checkbox-position;
top: 50%;
transform: translateY(-50%);
Expand All @@ -710,6 +716,7 @@
.custom-control-label,
.form-check-input {
left: $checkbox-position;
opacity: 1;
top: $checkbox-position;
transform: none;
}
Expand All @@ -720,6 +727,7 @@
.custom-control-label,
.form-check-input {
left: auto;
opacity: 1;
right: $checkbox-position;
top: $checkbox-position;
transform: none;
Expand Down

0 comments on commit 55f4e8b

Please sign in to comment.