Skip to content

Commit

Permalink
feat: separate disabled from read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Apr 21, 2023
1 parent ac336f1 commit 086199a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wicked-points-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@einride/ui": minor
---

Separate disabled from read-only.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const StyledInput = styled.input<StyledInputProps>`
hasLabel ? theme.borderRadii.sm : theme.borderRadii.xl};
${({ leftIcon, theme }) => leftIcon && `padding-inline-start: ${4.5 * theme.spacingBase}rem`};
&:read-only {
&:read-only:not(:disabled) {
padding-inline-start: 0;
background: none;
}
Expand Down

0 comments on commit 086199a

Please sign in to comment.