Skip to content

Commit

Permalink
fix(FluidListbox): fix issues with ai-enabled fluid listbox components (
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Apr 16, 2024
1 parent b82d843 commit 83082ca
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,10 @@
}

.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
.#{$prefix}--list-box[data-invalid]
.#{$prefix}--list-box__invalid-icon,
.#{$prefix}--list-box__wrapper--fluid
.#{$prefix}--list-box--warning
.#{$prefix}--list-box.#{$prefix}--list-box--warning
.#{$prefix}--list-box__invalid-icon {
inset-block-start: convert.to-rem(81px);
inset-inline-end: $spacing-05;
Expand Down Expand Up @@ -355,11 +356,21 @@

.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--multi-select)
.#{$prefix}--list-box__menu-icon {
inset-inline-end: calc($spacing-04);
inset-inline-end: $spacing-04;
}

.#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--dropdown)
.#{$prefix}--list-box__menu-icon {
inset-inline-end: calc($spacing-04);
inset-inline-end: $spacing-04;
}

// remove slug divider when element is invalid and fluid
.#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--slug
.#{$prefix}--list-box--invalid[data-invalid]
.#{$prefix}--slug::before,
.#{$prefix}--list-box__wrapper--slug
.#{$prefix}--list-box--warning
.#{$prefix}--slug::before {
display: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@

.#{$prefix}--select--fluid
.#{$prefix}--select--invalid
.#{$prefix}--select-input__wrapper[data-invalid]
.#{$prefix}--select__invalid-icon,
.#{$prefix}--select--fluid
.#{$prefix}--select--warning
.#{$prefix}--select-input__wrapper
.#{$prefix}--select__invalid-icon {
inset-block-start: convert.to-rem(73px);
inset-inline-end: $spacing-05;
Expand Down Expand Up @@ -208,4 +210,11 @@
.#{$prefix}--select-input {
padding-inline-end: $spacing-10;
}

// remove slug divider when element is invalid and fluid
.#{$prefix}--select--fluid
.#{$prefix}--select--slug:has(.#{$prefix}--select__invalid-icon)
.#{$prefix}--slug::before {
display: none;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,11 @@
~ .#{$prefix}--slug {
inset-inline-end: $spacing-05;
}

// Remove ai border when invalid
.#{$prefix}--text-area--fluid
.#{$prefix}--text-area__wrapper--slug
.#{$prefix}--text-area--invalid {
border-block-end-color: transparent;
}
}

0 comments on commit 83082ca

Please sign in to comment.