Skip to content

Commit

Permalink
feat: checkbox/toggle with checked="true" won't force to show a che…
Browse files Browse the repository at this point in the history
…cked value visually anymore

closes #2911
  • Loading branch information
saadeghi committed Mar 24, 2024
1 parent 0d1fd24 commit 17585a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/components/styled/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
@apply outline-base-content outline outline-2 outline-offset-2;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply bg-no-repeat;
animation: checkmark var(--animation-input, 0.2s) ease-out;
Expand Down Expand Up @@ -41,7 +40,6 @@
@apply outline-primary;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-primary bg-primary text-primary-content;
}
Expand All @@ -54,7 +52,6 @@
@apply outline-secondary;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-secondary bg-secondary text-secondary-content;
}
Expand All @@ -67,7 +64,6 @@
@apply outline-accent;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-accent bg-accent text-accent-content;
}
Expand All @@ -80,7 +76,6 @@
@apply outline-success;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-success bg-success text-success-content;
}
Expand All @@ -93,7 +88,6 @@
@apply outline-warning;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-warning bg-warning text-warning-content;
}
Expand All @@ -106,7 +100,6 @@
@apply outline-info;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-info bg-info text-info-content;
}
Expand All @@ -119,7 +112,6 @@
@apply outline-error;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-error bg-error text-error-content;
}
Expand Down
8 changes: 0 additions & 8 deletions src/components/styled/toggle.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
@apply bg-current;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
background-image: none;
--handleoffsetcalculator: var(--handleoffset);
Expand All @@ -48,7 +47,6 @@
@apply outline-primary;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-primary bg-primary text-primary-content border-opacity-10;
}
Expand All @@ -58,7 +56,6 @@
@apply outline-secondary;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-secondary bg-secondary text-secondary-content border-opacity-10;
}
Expand All @@ -68,7 +65,6 @@
@apply outline-accent;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-accent bg-accent text-accent-content border-opacity-10;
}
Expand All @@ -78,7 +74,6 @@
@apply outline-success;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-success bg-success text-success-content border-opacity-10;
}
Expand All @@ -88,7 +83,6 @@
@apply outline-warning;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-warning bg-warning text-warning-content border-opacity-10;
}
Expand All @@ -98,7 +92,6 @@
@apply outline-info;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-info bg-info text-info-content border-opacity-10;
}
Expand All @@ -108,7 +101,6 @@
@apply outline-error;
}
&:checked,
&[checked="true"],
&[aria-checked="true"] {
@apply border-error bg-error text-error-content border-opacity-10;
}
Expand Down

0 comments on commit 17585a6

Please sign in to comment.