(react) use css float for multi select

Previously the pills were not stacking under the actions div, now we can
do it using the forgotten CSS float feature.
This commit is contained in:
Nathan Vasse
2023-06-15 16:03:49 +02:00
committed by NathanVss
parent 10a28d5e22
commit 29b58ed1a6
2 changed files with 8 additions and 17 deletions

View File

@@ -218,14 +218,6 @@
gap: 0.25rem;
margin-right: 0.25rem;
margin-bottom: 0.25rem;
max-width: var(--c--components--forms-select--multi-pill-max-width);
> span {
min-width: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
&__clear {
width: auto;
@@ -239,12 +231,6 @@
&__input {
display: inline-grid;
width: 0;
overflow: hidden;
&:focus-within {
width: auto;
}
&::after,
input {

View File

@@ -92,9 +92,14 @@ export const SelectMonoAux = ({
fullWidth={fullWidth}
>
<div
className={classNames("c__select", "c__select--" + state, {
"c__select--disabled": disabled,
})}
className={classNames(
"c__select",
"c__select--mono",
"c__select--" + state,
{
"c__select--disabled": disabled,
}
)}
>
{/* We disabled linting for this specific line because we consider that the onClick props is only used for */}
{/* mouse users, so this do not engender any issue for accessibility. */}