| 125 | gap: ${semantic.gap.tight}; |
| 126 | `, |
| 127 | selectContainer: css` |
| 128 | width: 100%; |
| 129 | &::selection, |
| 130 | & *::selection { |
| 131 | background: ${semantic.color.state.selectionFill}; |
| 132 | color: ${semantic.color.state.selectionText}; |
| 133 | } |
| 134 | `, |
| 135 | selectLabel: css` |
| 136 | font: ${semantic.type.labelSm.weight} ${semantic.type.labelSm.size} / |
| 137 | ${semantic.type.labelSm.lineHeight} ${semantic.font.body}; |
| 138 | letter-spacing: ${semantic.type.labelSm.tracking}; |
| 139 | color: ${semantic.color.text.primary}; |
| 140 | text-align: left; |
| 141 | `, |
| 142 | selectDescription: css` |
| 143 | font: ${semantic.type.bodyXs.weight} ${semantic.type.bodyXs.size} / |
| 144 | ${semantic.type.bodyXs.lineHeight} ${semantic.font.body}; |
| 145 | color: ${semantic.color.text.secondary}; |
| 146 | margin: 0; |
| 147 | text-align: left; |
| 148 | `, |
| 149 | select: css` |
| 150 | /* The platform chevron is drawn in the OS accent, which reads as foreign |
| 151 | next to the rest of the panel — draw our own from currentColor instead |
| 152 | so it follows the theme. */ |
| 153 | appearance: none; |
| 154 | -webkit-appearance: none; |
| 155 | width: 100%; |
| 156 | box-sizing: border-box; |
| 157 | padding: ${semantic.padding.controlBlock} 28px |
| 158 | ${semantic.padding.controlBlock} ${semantic.padding.controlInline}; |
| 159 | border-radius: ${semantic.radius.control}; |
| 160 | background-color: ${semantic.color.surface.elevated}; |
| 161 | background-image: |
| 162 | linear-gradient(45deg, transparent 50%, currentColor 50%), |
| 163 | linear-gradient(135deg, currentColor 50%, transparent 50%); |
| 164 | background-position: |
| 165 | right 14px center, |
| 166 | right 9px center; |
| 167 | background-size: |
| 168 | 5px 5px, |
| 169 | 5px 5px; |
| 170 | background-repeat: no-repeat; |
| 171 | color: ${semantic.color.text.primary}; |
| 172 | border: 1px solid ${semantic.color.border.control}; |
| 173 | font: ${semantic.type.bodySm.weight} ${semantic.type.bodySm.size} / |
| 174 | ${semantic.type.bodySm.lineHeight} ${semantic.font.body}; |
| 175 | transition: |
| 176 | border-color 0.15s ease, |
| 177 | background-color 0.15s ease; |
| 178 | cursor: pointer; |
| 179 | |
| 180 | &:hover { |
| 181 | border-color: ${semantic.color.border.focus}; |
| 182 | } |
| 183 | |
| 184 | &:focus-visible { |