ProvidersStep mobile: white search fill + Sort by text trigger

- Mobile-map search input gets an explicit white fill so it reads
  cleanly against map tiles (desktop unchanged)
- Sort trigger on mobile-map is now a compact "Sort by" outlined
  Button instead of a lone icon — clearer affordance than the swap
  glyph, still tight on horizontal space

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-22 21:43:39 +10:00
parent 705e85b37c
commit d91ad13af8

View File

@@ -621,6 +621,9 @@ export const ProvidersStep: React.FC<ProvidersStepProps> = ({
/> />
)} )}
sx={{ sx={{
'& .MuiOutlinedInput-root': {
bgcolor: 'background.paper',
},
'& .MuiOutlinedInput-root.Mui-focused': { '& .MuiOutlinedInput-root.Mui-focused': {
boxShadow: 'none', boxShadow: 'none',
'& .MuiOutlinedInput-notchedOutline': { '& .MuiOutlinedInput-notchedOutline': {
@@ -651,26 +654,25 @@ export const ProvidersStep: React.FC<ProvidersStepProps> = ({
{filterDialogChildren} {filterDialogChildren}
</FilterPanel> </FilterPanel>
{/* Sort — icon-only on mobile (expansion of the current sort {/* Sort — compact text trigger on mobile. Current value lives
surfaced through the menu + aria-label) */} in the menu (selected state); aria-label spells it out. */}
<IconButton <Button
variant="outlined"
color="secondary"
size="small"
onClick={(e) => setSortAnchor(e.currentTarget)} onClick={(e) => setSortAnchor(e.currentTarget)}
aria-haspopup="listbox" aria-haspopup="listbox"
aria-label={`Sort by ${SORT_OPTIONS.find((o) => o.value === sortBy)?.label ?? 'Recommended'}`} aria-label={`Sort by ${SORT_OPTIONS.find((o) => o.value === sortBy)?.label ?? 'Recommended'}`}
sx={{ sx={{
width: 32,
height: 32, height: 32,
borderRadius: 1,
border: '1px solid',
borderColor: 'divider',
bgcolor: 'background.paper', bgcolor: 'background.paper',
color: 'text.secondary', textTransform: 'none',
'&:hover': { bgcolor: 'background.paper' }, '&:hover': { bgcolor: 'background.paper' },
'&:focus-visible': { outline: 'none' }, '&:focus-visible': { outline: 'none' },
}} }}
> >
<SwapVertIcon sx={{ fontSize: 18 }} /> Sort by
</IconButton> </Button>
<Menu <Menu
anchorEl={sortAnchor} anchorEl={sortAnchor}
open={Boolean(sortAnchor)} open={Boolean(sortAnchor)}