nicolium: event create page a11y

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-18 14:48:13 +01:00
parent 1dc551d649
commit 21e7efa8a9
4 changed files with 12 additions and 8 deletions

View File

@@ -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}

View File

@@ -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;