Skip to content

Commit 879a5c0

Browse files
committed
fix(#1999): fix search autocomplete width for mobile
improve css selector specificity so that autocomplete width is inherited correctly
1 parent d5aed9e commit 879a5c0

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/dev/docs/src/docs.css

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -632,13 +632,13 @@ h2.sectionHeader {
632632

633633
.docSearchBoxThemeProvider {
634634
height: var(--spectrum-global-dimension-size-400);
635-
}
636635

637-
.docSearchBox {
638-
margin-inline-start: auto;
639-
width: var(--spectrum-global-dimension-size-3000) !important;
640-
> div {
641-
width: 100%;
636+
.docSearchBox {
637+
margin-inline-start: auto;
638+
width: var(--spectrum-global-dimension-size-3000);
639+
> div {
640+
width: 100%;
641+
}
642642
}
643643
}
644644

@@ -802,9 +802,11 @@ h2.sectionHeader {
802802
}
803803
}
804804

805-
@media (max-width: 569px) {
806-
.docSearchBox {
807-
width: var(--spectrum-global-dimension-size-2400);
805+
@media (max-width: 375px) {
806+
.docSearchBoxThemeProvider {
807+
.docSearchBox {
808+
width: var(--spectrum-global-dimension-size-2400);
809+
}
808810
}
809811
}
810812

0 commit comments

Comments
 (0)