15 min fix: make sure autocomplete dropdown occupies width (#13600)

* 15 min fix: make sure dropdown occupies width

* set width instead, with comment to explain
This commit is contained in:
Suzanne Aitchison 2021-04-30 14:11:31 +01:00 committed by GitHub
parent c88fc5d233
commit ce689ab0c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,13 @@
}
&__popover {
max-width: 300px;
padding: var(--su-1);
z-index: var(--z-elevate);
&[data-reach-popover] {
// Reach UI adds a width directly to this element as an inline style. !important is needed to make sure the size is constrained.
width: 250px !important;
@include generate-box(
$level: 1,
$bg: var(--card-bg),