Accessibility and localization
The built-in trigger and dialog expose accessible names, expanded state and dialog semantics. The default modal manages focus, nested dialog activity, scroll lock and restoration. The grid uses roving row focus.
| Key | Default behavior |
|---|---|
| Tab / Shift+Tab | Move within the active dialog |
| Up / Down | Navigate selectable rows |
| Home / End | Move to the first/last selectable row |
| Enter / Space on a row | Toggle its selection |
| Escape | Cancel the active default dialog |
Interactive controls inside cells retain native behavior. Do not attach selection to every click in a custom grid: buttons, links and inputs may have independent actions. For consumer portals inside the default dialog, use the provided DOM portal host marked data-lookup-select-portal-host so focus stays within the dialog.
When replacing the default modal, accessibility of the custom dialog is your responsibility. Test keyboard-only navigation and screen-reader announcements in your real application.
Localization
Section titled “Localization”Override built-in strings using the i18n prop; formatters receive the relevant values.
<LookupSelect data={parts} columns={columns} mapper={mapper} i18n={{ triggerPlaceholder: 'Parça seçin', searchPlaceholder: 'Ara', modalTitle: 'Parça seç', confirmText: 'Uygula', cancelText: 'İptal', selectedCount: count => count + ' seçildi', }}/>Overrides are optional and fall back to English. Use searchLabel, gridLabel, selectRowLabel(text), sortColumnLabel(title) and removeTagLabel(text) for accessible names. Use pendingSelection(count), hydrationRequired and clearPendingText for unresolved selections. Pagination accepts formatters including pageLabel(page) and recordsInfo(start, end, total). The public i18nStrings type lists the complete set. Localize column titles and mapper labels in your application.