Skip to content

Commit

Permalink
feat: halve input with icon padding
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWebb committed Mar 20, 2024
1 parent 1d412af commit 5f06d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/control/Input/Input.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ diamond-input {
/* Prefix */
&:has(* + :is(input, textarea, select)) > :first-child {
margin-right: calc(var(--diamond-input-padding-inline) / 2 * -1);
padding: 0 0 0 var(--diamond-input-padding-inline);
padding: 0 0 0 calc(var(--diamond-input-padding-inline) / 2);
}

/* Suffix */
:is(input, textarea, select) + * {
margin-left: calc(var(--diamond-input-padding-inline) / 2 * -1);
padding: 0 var(--diamond-input-padding-inline) 0 0;
padding: 0 calc(var(--diamond-input-padding-inline) / 2) 0 0;
}
}

0 comments on commit 5f06d4a

Please sign in to comment.