Skip to content

Commit

Permalink
UILD-414 Headings - Heading that introduces content are not marked up…
Browse files Browse the repository at this point in the history
… as a heading (#36)
  • Loading branch information
vashjs authored Nov 19, 2024
1 parent e657db7 commit 2d74e62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/SearchControlPane/SearchControlPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export const SearchControlPane: FC<SearchControlPaneProps> = ({
<div className={classNames(['search-control-pane', IS_EMBEDDED_MODE && 'search-control-pane-embedded'])}>
{renderCloseButton?.()}
<div className="search-control-pane-title">
<div className="search-control-pane-mainLabel">
<h2 className="search-control-pane-mainLabel">
<span>{label}</span>
</div>
</h2>
{isVisibleSubLabel && !!renderSubLabel && (
<div className="search-control-pane-subLabel">
<span>{renderSubLabel?.(searchResultsMetadata?.totalElements)}</span>
Expand Down
6 changes: 3 additions & 3 deletions src/components/SearchControls/SearchControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export const SearchControls: FC<Props> = ({ submitSearch, changeSegment, clearVa
}, []);

return (
<div className="search-pane">
<div className="search-pane" role="region" aria-labelledby="search-pane-header-title">
<div className="search-pane-header">
<strong className="search-pane-header-title">
<h2 className="search-pane-header-title">
<FormattedMessage id={isVisibleFilters ? 'ld.searchAndFilter' : 'ld.search'} />
</strong>
</h2>
<CaretDown className="header-caret" />
</div>
<div className="search-pane-content">
Expand Down

0 comments on commit 2d74e62

Please sign in to comment.