Skip to content

Commit

Permalink
fix(input): blue background if read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
joschka committed Jan 19, 2024
1 parent ab37495 commit 5c57a64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ module.exports = function ({ addComponents, theme }) {
},
".ds-input:read-only": {
boxShadow: "none !important",
backgroundColor: theme("colors.blue.300"),
},
".ds-input:disabled": {
boxShadow: `inset 0 0 0 2px ${theme("colors.gray.600")} !important`,
color: theme("colors.gray.600"),
cursor: "not-allowed",
backgroundColor: theme("colors.white"),
},
".ds-input.has-error": {
boxShadow: `inset 0 0 0 2px ${theme("colors.red.800")}`,
Expand Down

0 comments on commit 5c57a64

Please sign in to comment.