Skip to content

Commit 90a09cb

Browse files
author
Justin Kimbrell
committed
ci: release
1 parent c0369a0 commit 90a09cb

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.changeset/bright-lights-punch.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@vue-interface/form-control": patch
3+
"@vue-interface/input-field": patch
4+
---
5+
6+
Fixed issue with form control padding not being correct with an icon if no size is present

packages/form-control/src/css/form-control.css

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,8 @@
124124
}
125125
}
126126

127-
&.has-icon {
128-
padding: 0rem;
129-
130-
.form-control-icon {
131-
padding-left: calc(--value(--form-control-font-size-*, [length]) * 2);
132-
padding-left: calc(--spacing(--value(integer)) * 2);
133-
}
127+
:has(.has-icon) &.form-control-icon {
128+
padding-left: calc(var(--form-control-font-size) * 2);
134129
}
135130

136131
&::placeholder {

packages/input-field/vite.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ const external = [
1414
];
1515

1616
export default ({ command }) => defineConfig({
17+
resolve: {
18+
conditions: [
19+
'source',
20+
'import',
21+
'require',
22+
]
23+
},
1724
build: {
1825
sourcemap: command === 'build',
1926
lib: {

0 commit comments

Comments
 (0)