Skip to content
Original file line number Diff line number Diff line change
@@ -1,9 +1,36 @@
@use '@tedi-design-system/core/bootstrap-utility/breakpoints';

.tedi-category-search {
position: relative;
width: 100%;
min-width: 0;
max-width: 100%;

&__mobile-body {
display: grid;
gap: var(--layout-grid-gutters-16);

.tedi-category-search__actions {
background-color: transparent;
border: 0;
border-radius: 0;

> button:last-child {
margin-inline-start: auto;
}
}
}

&__mobile-controls {
display: grid;
gap: var(--layout-grid-gutters-08);
padding-block-end: var(--layout-grid-gutters-16);
padding-inline: var(--modal-body-padding);
margin-inline: calc(-1 * var(--modal-body-padding));
border-block-end: 1px solid var(--general-border-primary);

> button {
--button-radius-default: var(--form-field-radius);
}
}

&__bar {
position: relative;
Expand All @@ -29,22 +56,29 @@
}

&__suffix {
max-width: 45%;

> button {
display: flex;
gap: var(--tedi-dimensions-01);
align-items: center;
justify-content: space-between;
width: 100%;
height: 100%;
white-space: normal;
white-space: nowrap;
}
}

&__category-label {
display: grid;
align-items: center;
min-width: 0;
overflow-wrap: anywhere;

> span {
grid-area: 1 / 1;
}

&--hidden {
visibility: hidden;
}
}

& &__suffix > button {
Expand Down Expand Up @@ -101,7 +135,6 @@
position: absolute;
z-index: var(--z-index-dropdown);
box-sizing: border-box;
width: var(--category-search-panel-width);
max-height: var(--category-search-panel-max-height);
padding: var(--layout-grid-gutters-08);
margin-block-start: var(--tedi-dimensions-01);
Expand Down Expand Up @@ -144,12 +177,4 @@
border: 0;
clip-path: inset(50%);
}

@include breakpoints.media-breakpoint-down(sm) {
&__actions {
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
}
}
1,359 changes: 990 additions & 369 deletions src/community/components/form/category-search/category-search.spec.tsx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,4 @@
gap: var(--tedi-dimensions-02);
margin-block-end: var(--tedi-dimensions-04);
}

&__results {
padding: 0;
margin: 0;
list-style: none;

li {
display: flex;
padding-block: var(--tedi-dimensions-02);
overflow-wrap: anywhere;

+ li {
border-block-start: 1px solid var(--general-border-primary);
}
}
}
}
Loading
Loading