Postcode Lookup uses a small default set of messages to communicate specific events to the user. All of Postcode Lookup's default messages can be overridden. They are outlined below:
Sets the default placeholder label on input field.
Sets the label on the search button.
Message shown when button is temporarily disabled due to lookup.
Message shown when an error occurs and prevents address verification from succeeding.
Message shown when an invalid or terminated postcode is searched.
Message shown at the top of the address
Message shown to unhide address fields and allow manual address entry.
Postcode Lookup exposes some accessibility settings.
The following WAI-ARIA components of Postcode Lookups have WAI-ARIA attributes enabled
- Message box has
aria-roleis set to alert to immediately notify the user
- Postcode Lookup container has
aria-liveenabled to alert users to updates in the address dropdown
- Search input accepts an Enter/Return key to trigger an address search without submitting the form
Keep in mind these messages are also important for users who rely on the screen-reader. When altering the message be sure that the necessary meaning and intent is understandable to visually impaired users who will be getting audio cues from their screen-reader.