Skip to content

Commit

Permalink
feat(pdc-frontend): add id prop to SearchBar
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Sep 12, 2023
1 parent ca5d62a commit c0788fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/pdc-frontend/src/components/SearchBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const SearchBar: React.FC<SearchBarProps> = ({
onChange={onChange}
items={optimisticSearchValue.value}
input={{
id: 'search-input',
ariaLabel: inputAriaLabel,
name: 'search',
required: true,
Expand Down
2 changes: 2 additions & 0 deletions apps/pdc-frontend/src/components/UtrechtSearchBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type InputTypes = {
ariaLabel?: string;
required?: boolean;
spellCheck?: boolean;
id?: string;
};

type ButtonTypes = {
Expand Down Expand Up @@ -128,6 +129,7 @@ export const UtrechtSearchBar: React.FC<SearchBarProps> = ({
{...getInputProps()}
placeholder={input?.placeholder}
required={input?.required}
id={input?.id}
name={input?.name}
type="search"
aria-label={input?.ariaLabel}
Expand Down

0 comments on commit c0788fb

Please sign in to comment.