Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(typeahead): update mobile typeahead item styles
Browse files Browse the repository at this point in the history
QuintonJason committed Jan 14, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
addaleax Anna Henningsen
1 parent a93f91c commit 223f1a6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/sage-assets/lib/stylesheets/components/_typeahead.scss
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@


$-typeahead-item-height: rem(68px);
$-typeahead-item-width: rem(240px);


.sage-typeahead {
@@ -25,6 +26,7 @@ $-typeahead-item-height: rem(68px);
background-color: sage-color(white);
border-radius: sage-border(radius);
box-shadow: sage-shadow(md);
min-width: $-typeahead-item-width;
}

.sage-typeahead__null-state {
@@ -73,6 +75,14 @@ $-typeahead-item-height: rem(68px);
padding: sage-spacing(md) sage-spacing(sm);
text-align: left;

@media (hover: none) {
gap: 0;

pds-icon {
display: none;
}
}

&::after {
border-radius: 0;
}
@@ -97,10 +107,13 @@ $-typeahead-item-height: rem(68px);
}

.sage-typeahead__item-actions {
visibility: hidden;
display: flex;
flex-wrap: nowrap;

@media (hover: hover) {
visibility: hidden;
}

:hover > &,
:focus-within > & {
visibility: visible;

0 comments on commit 223f1a6

Please sign in to comment.