Skip to main content
This guide covers best practices for displaying SmartMenu search results, match badges, and nutrition information in your UI.

Match Groups

Search results are grouped into three categories based on how well dishes match the guest’s preferences.

Match Status Overview

Visual Hierarchy

Match Badges

Badge Components

CSS Styling

Match Reasons

For ALMOST_MATCH and NOT_MATCH dishes, always display the reasons:

Compact Dish View

For list layouts, show key information inline:

Nutrition Panel

Full Nutrition Facts

Display the complete nutrition panel in dish detail views:

Allergen Badges

Allergen information is critical for guest safety. Make allergen badges highly visible and never hide them.

Diet Tags

Empty States

Handle cases where no dishes match:

Accessibility

Screen Readers

Use aria-label on badges: “Match status: Almost match, contains dairy”

Color Contrast

Ensure badge colors meet WCAG AA contrast ratios

Keyboard Navigation

All interactive elements should be keyboard accessible

Focus Indicators

Visible focus states on dish cards and buttons