Skip to content

Commit

Permalink
fix: disabled input for flushed variant
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Aug 13, 2022
1 parent 3dc27e0 commit 8eb7931
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/gentle-keys-care.md
@@ -0,0 +1,6 @@
---
"@chakra-ui/theme": patch
---

Fix issue where disabled input with flushed or unstyled variant isn't
perceivable.
8 changes: 8 additions & 0 deletions packages/theme/src/components/input.ts
Expand Up @@ -172,6 +172,10 @@ const variantFlushed: PartsStyleFunction<typeof parts> = (props) => {
borderColor: getColor(theme, fc),
boxShadow: `0px 1px 0px 0px ${getColor(theme, fc)}`,
},
_disabled: {
opacity: 0.4,
cursor: "not-allowed",
},
},
addon: {
borderBottom: "2px solid",
Expand All @@ -188,6 +192,10 @@ const variantUnstyled: PartsStyleObject<typeof parts> = {
bg: "transparent",
px: 0,
height: "auto",
_disabled: {
opacity: 0.4,
cursor: "not-allowed",
},
},
addon: {
bg: "transparent",
Expand Down

1 comment on commit 8eb7931

@vercel
Copy link

@vercel vercel bot commented on 8eb7931 Aug 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.