fix: update design for select component and remove placeholders
This commit is contained in:
@@ -33,11 +33,11 @@
|
||||
gap: var(--Spacing-x1);
|
||||
}
|
||||
|
||||
.select.discreet .inputContentWrapper {
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-direction: row;
|
||||
font-weight: 500;
|
||||
.select[data-disabled],
|
||||
.select[data-disabled] .input {
|
||||
background-color: var(--UI-Input-Controls-Surface-Disabled);
|
||||
border: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.input {
|
||||
@@ -54,14 +54,21 @@
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.inputContentWrapper {
|
||||
.input :global(.react-aria-SelectValue) {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Spacing-x-half);
|
||||
flex: 1 0 0;
|
||||
}
|
||||
|
||||
.select.discreet :global(.react-aria-SelectValue) {
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-direction: row;
|
||||
font-weight: 500;
|
||||
gap: var(--Spacing-x-half);
|
||||
}
|
||||
|
||||
.popover {
|
||||
background-color: var(--Main-Grey-White);
|
||||
border-radius: var(--Corner-radius-Medium);
|
||||
@@ -110,3 +117,20 @@
|
||||
.listBoxItem[data-selected="true"].showRadioButton:before {
|
||||
box-shadow: inset 0 0 0 8px var(--UI-Input-Controls-Fill-Selected);
|
||||
}
|
||||
|
||||
/* Use global react aria classnames here since setting a css modules classname overrides
|
||||
the class set by react aria.We use that class to style the child label component. */
|
||||
.select:not(.discreet) :global(.react-aria-SelectValue) {
|
||||
display: grid;
|
||||
transition: height 200ms ease;
|
||||
}
|
||||
|
||||
.input :global(.react-aria-SelectValue) {
|
||||
height: 18px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.input :global(.react-aria-SelectValue):has(:nth-child(2)) {
|
||||
height: 38px;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user