Skip to content

Commit

Permalink
fix: show the parent element of disabled input as disabled
Browse files Browse the repository at this point in the history
fixes: #3004
  • Loading branch information
saadeghi committed May 2, 2024
1 parent 829ec73 commit 50d26b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/styled/input.css
Expand Up @@ -74,11 +74,15 @@
@apply outline-error border-error;
}
}
&:has(> input[disabled]),
&-disabled,
&:disabled,
&[disabled] {
@apply border-base-200 bg-base-200 placeholder-base-content text-base-content/40 cursor-not-allowed placeholder-opacity-20;
}
&:has(> input[disabled]) > input[disabled] {
@apply cursor-not-allowed;
}
/* &::-webkit-calendar-picker-indicator {
display: none;
} */
Expand Down

0 comments on commit 50d26b5

Please sign in to comment.