Skip to content

Commit

Permalink
fix(combobox): update combobox height to follow design spec (#7558)
Browse files Browse the repository at this point in the history
**Related Issue:** #6421 

## Summary

✨💅✨
  • Loading branch information
jcfranco authored Aug 23, 2023
1 parent 8df59ab commit ec08845
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
@apply text-n2;
--calcite-combobox-item-spacing-unit-l: theme("spacing.2");
--calcite-combobox-item-spacing-unit-s: theme("spacing.1");
--calcite-combobox-input-height: theme("spacing.6");
--calcite-combobox-input-height: theme("spacing.4");
--calcite-internal-combobox-input-margin-block: calc(theme("spacing.1") - theme("borderWidth.DEFAULT"));

.x-button {
margin-inline-end: theme("spacing.2");
Expand All @@ -28,7 +29,8 @@
@apply text-n1;
--calcite-combobox-item-spacing-unit-l: theme("spacing.3");
--calcite-combobox-item-spacing-unit-s: theme("spacing.2");
--calcite-combobox-input-height: theme("spacing.8");
--calcite-combobox-input-height: theme("spacing.4");
--calcite-internal-combobox-input-margin-block: calc(theme("spacing.2") - theme("borderWidth.DEFAULT"));

.x-button {
margin-inline-end: theme("spacing.3");
Expand All @@ -39,7 +41,8 @@
@apply text-0;
--calcite-combobox-item-spacing-unit-l: theme("spacing.4");
--calcite-combobox-item-spacing-unit-s: theme("spacing.3");
--calcite-combobox-input-height: theme("spacing.11");
--calcite-combobox-input-height: theme("spacing.6");
--calcite-internal-combobox-input-margin-block: calc(theme("spacing[2.5]") - theme("borderWidth.DEFAULT"));

.x-button {
margin-inline-end: theme("spacing.4");
Expand Down Expand Up @@ -101,7 +104,8 @@
}

.input--single {
@apply mb-0 mt-0 p-0;
@apply p-0;
margin-block: var(--calcite-internal-combobox-input-margin-block);
}

.wrapper--active .input-single {
Expand All @@ -121,7 +125,7 @@
}

.input-wrap {
@apply flex flex-grow;
@apply flex flex-grow items-center;
}

.input-wrap--single {
Expand Down

0 comments on commit ec08845

Please sign in to comment.