Skip to content

Commit

Permalink
fix(input-file-regular): set height to inner element
Browse files Browse the repository at this point in the history
  • Loading branch information
stafyniaksacha committed Aug 27, 2023
1 parent aa5d1a1 commit f468417
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions src/plugins/components/input-file-regular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,19 @@ export default plugin.withOptions(
},
},
[`&.${prefix}input-sm:not(.${prefix}has-icon)`]: {
[`@apply h-8 py-2 text-${config.hasNotIcon.sm} leading-4 gap-1`]:
{},
[`@apply text-${config.hasNotIcon.sm} leading-4`]: {},
[`.${prefix}input-file-inner`]: {
[`@apply h-8 py-2 gap-1`]: {},
},
[`.${prefix}input-file-addon`]: {
[`@apply h-8 px-2`]: {},
},
},
[`&.${prefix}input-sm.${prefix}has-icon`]: {
[`@apply h-8 py-2 text-${config.hasIcon.sm.text} leading-4 pe-3`]:
{},
[`@apply text-${config.hasIcon.sm.text} leading-4`]: {},
[`.${prefix}input-file-inner`]: {
[`@apply h-8 py-2 pe-3`]: {},
},
[`.${prefix}input-file-addon`]: {
[`@apply h-8 px-2`]: {},
},
Expand All @@ -214,13 +218,19 @@ export default plugin.withOptions(
},
},
[`&.${prefix}input-md:not(.${prefix}has-icon)`]: {
[`@apply h-10 text-${config.hasNotIcon.md} leading-5 gap-2`]: {},
[`@apply text-${config.hasNotIcon.md} leading-5`]: {},
[`.${prefix}input-file-inner`]: {
[`@apply h-10 gap-2`]: {},
},
[`.${prefix}input-file-addon`]: {
[`@apply h-10 px-3`]: {},
},
},
[`&.${prefix}input-md.${prefix}has-icon`]: {
[`@apply h-10 text-${config.hasIcon.md.text} leading-5 pe-4`]: {},
[`@apply text-${config.hasIcon.md.text} leading-5`]: {},
[`.${prefix}input-file-inner`]: {
[`@apply h-10 pe-4`]: {},
},
[`.${prefix}input-file-addon`]: {
[`@apply h-10 px-3`]: {},
},
Expand All @@ -230,13 +240,19 @@ export default plugin.withOptions(
},
},
[`&.${prefix}input-lg:not(.${prefix}has-icon)`]: {
[`@apply h-12 text-${config.hasNotIcon.lg} leading-5 gap-2`]: {},
[`@apply text-${config.hasNotIcon.lg} leading-5`]: {},
[`.${prefix}input-file-inner`]: {
[`@apply h-12 gap-2`]: {},
},
[`.${prefix}input-file-addon`]: {
[`@apply h-12 px-4`]: {},
},
},
[`&.${prefix}input-lg.${prefix}has-icon`]: {
[`@apply h-12 text-${config.hasIcon.lg.text} leading-5 pe-4`]: {},
[`@apply text-${config.hasIcon.lg.text} leading-5`]: {},
[`.${prefix}input-file-inner`]: {
[`@apply h-12 pe-4`]: {},
},
[`.${prefix}input-file-addon`]: {
[`@apply h-12 px-4`]: {},
},
Expand Down

0 comments on commit f468417

Please sign in to comment.