Skip to content

Commit

Permalink
Add id back for search box
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda committed Sep 25, 2023
1 parent 261ea17 commit 7cffaf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export default class SearchPage extends Component<SearchArgs> {
leftPanelObjectDropdownId = uniqueId(['left-panel-object-dropdown']);
firstTopbarObjectTypeLinkId = uniqueId(['first-topbar-object-type-link']);
searchInputWrapperId = uniqueId(['search-input-wrapper']);
searchBoxId = uniqueId(['search-box']);
leftPanelHeaderId = uniqueId(['left-panel-header']);
firstFilterId = uniqueId(['first-filter']);

Expand Down
3 changes: 2 additions & 1 deletion lib/osf-components/addon/components/search-page/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ as |layout|>
{{else}}
<label
data-test-search-header
for='search-input'
for={{this.searchBoxId}}
local-class='heading-label'
>
<h1>{{t 'search.search-header'}}</h1>
Expand All @@ -53,6 +53,7 @@ as |layout|>
data-test-search-input
data-analytics-name='Search input'
local-class='search-input'
id={{this.searchBoxId}}
@type='search'
@placeholder={{t 'search.textbox-placeholder'}}
@value={{this.cardSearchText}}
Expand Down

0 comments on commit 7cffaf3

Please sign in to comment.