nicolium: event create page a11y
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -17,10 +17,11 @@ const messages = defineMessages({
|
||||
});
|
||||
|
||||
interface ILocationSearch {
|
||||
id?: string;
|
||||
onSelected: (location: Location) => void;
|
||||
}
|
||||
|
||||
const LocationSearch: React.FC<ILocationSearch> = ({ onSelected }) => {
|
||||
const LocationSearch: React.FC<ILocationSearch> = ({ id, onSelected }) => {
|
||||
const intl = useIntl();
|
||||
|
||||
const [value, setValue] = useState('');
|
||||
@@ -60,6 +61,7 @@ const LocationSearch: React.FC<ILocationSearch> = ({ onSelected }) => {
|
||||
return (
|
||||
<div className='relative'>
|
||||
<AutosuggestInput
|
||||
id={id}
|
||||
className='rounded-full'
|
||||
placeholder={intl.formatMessage(messages.placeholder)}
|
||||
value={value}
|
||||
|
||||
@@ -70,7 +70,7 @@ type Directions = 'ltr' | 'rtl';
|
||||
|
||||
interface IText extends Pick<
|
||||
React.HTMLAttributes<HTMLParagraphElement>,
|
||||
'dangerouslySetInnerHTML' | 'tabIndex' | 'lang' | 'onClick' | 'role'
|
||||
'dangerouslySetInnerHTML' | 'tabIndex' | 'lang' | 'onClick' | 'role' | 'id'
|
||||
> {
|
||||
/** Text content. */
|
||||
children?: React.ReactNode;
|
||||
|
||||
Reference in New Issue
Block a user