Skip to content

Commit

Permalink
fix(ui): remove error border from disabled and quiet primitive fields (
Browse files Browse the repository at this point in the history
…#4457)

* fix(ui): removing red border from disabled text and select field with error

* Create five-ghosts-hug.md
  • Loading branch information
esauerbo authored Sep 18, 2023
1 parent ac3cfa8 commit 6a5a4d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/five-ghosts-hug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui": patch
---

fix(ui): remove error border from disabled and quiet primitive fields
20 changes: 10 additions & 10 deletions packages/ui/src/theme/css/component/_fieldControl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,6 @@
}
}

// for disabled styles
&[disabled] {
color: var(--amplify-components-fieldcontrol-disabled-color);
cursor: var(--amplify-components-fieldcontrol-disabled-cursor);
border-color: var(--amplify-components-fieldcontrol-disabled-border-color);
background-color: var(
--amplify-components-fieldcontrol-disabled-background-color
);
}

// variation styles
&--quiet {
border-block-start: var(
Expand Down Expand Up @@ -110,4 +100,14 @@
}
}
}

// for disabled styles
&[disabled] {
color: var(--amplify-components-fieldcontrol-disabled-color);
cursor: var(--amplify-components-fieldcontrol-disabled-cursor);
border-color: var(--amplify-components-fieldcontrol-disabled-border-color);
background-color: var(
--amplify-components-fieldcontrol-disabled-background-color
);
}
}

0 comments on commit 6a5a4d7

Please sign in to comment.