✨(react) add horizontal mode to LabelledBox
This way initially added for the multi select but after some discussions we decided to keep the label vertical even for the multi select. But this could be useful in the future.
This commit is contained in:
@@ -38,4 +38,21 @@
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&--horizontal {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: auto;
|
||||
|
||||
label {
|
||||
padding-top: 0;
|
||||
position: static;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.labelled-box__children {
|
||||
flex-grow: 1;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user