Skip to content

Commit

Permalink
feat: reduce padding in icon input prefix (#990)
Browse files Browse the repository at this point in the history
* feat: reduce padding icon

* feat: changeset

* feat: update snapshots

* feat: change space

* feat: snapshots and suffixed icon
  • Loading branch information
sgimama authored Nov 6, 2024
1 parent 9827c50 commit 4c8dc14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-clocks-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@autoguru/overdrive': minor
---

Reduce padding in prefix input incon when the input measures 150px or less
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ export const inputItselfSize = {
}),
prefixed: styleVariants({
any: {
paddingLeft: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
paddingLeft: `calc(${vars.space['2']} + ${vars.space['4']} + ${vars.space['2']})`,
},
textarea: {
paddingLeft: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
},
}),
suffixed: styleVariants({
any: {
paddingRight: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
paddingRight: `calc(${vars.space['2']} + ${vars.space['4']} + ${vars.space['2']})`,
},
textarea: {
paddingRight: `calc(${vars.space['2']} + ${vars.space['5']} + ${vars.space['2']})`,
Expand Down

0 comments on commit 4c8dc14

Please sign in to comment.