discourse/app/assets/stylesheets/common/select-kit/combo-box.scss
Joffrey JAFFEUX cb59681d86
DEV: select-kit third major update with focus on accessibility (#13303)
Major changes included:
- better support for screen readers
- trapping focus in modals
- better tabbing order in composer
- alerts on no content found/number of items found
- better autofocus in modals
- mini-tag-chooser is now a multi-select component
- each multi-select-component will now display selection on one row
2021-08-23 10:44:19 +02:00

96 lines
1.7 KiB
SCSS

.select-kit {
&.combo-box {
.select-kit-body {
border-radius: 0;
}
.select-kit-row {
margin: 0;
min-height: 1px;
&.no-content {
font-weight: normal;
}
}
.select-kit-filter {
.filter-input,
.filter-input:focus,
.filter-input:active {
flex: 1;
}
.filter-icon {
margin-left: 0.25em;
}
}
.select-kit-header {
background: var(--secondary);
border: 1px solid var(--primary-medium);
padding: 0 0.25em 0 0.5em;
font-weight: 500;
font-size: $font-0;
&.is-focused {
@include default-focus;
}
}
.select-kit-collection {
display: flex;
flex-direction: column;
padding: 0;
min-width: 100px;
.collection-header {
a {
white-space: nowrap;
color: var(--primary);
line-height: $line-height-medium;
font-weight: bold;
display: block;
padding: 0.75em;
color: var(--tertiary);
&:hover {
text-decoration: underline;
}
}
}
}
&.is-disabled {
.select-kit-header {
background: var(--primary-low);
border-color: var(--primary-low-mid);
color: var(--primary-medium);
.d-icon {
color: var(--primary-medium);
}
}
}
&.is-highlighted {
.select-kit-header {
@include default-focus;
}
}
&.tag-drop,
&.group-dropdown {
min-width: auto;
}
&.tag-drop {
color: var(--primary-high);
}
&.group-dropdown {
.select-kit-row {
font-weight: bold;
}
}
}
}