Skip to content

Commit

Permalink
fix: accessibility headers h1 fixed (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
melniiv committed May 3, 2023
1 parent 87120e0 commit 7be0f35
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ const AdvancedSearch: React.FC<Props> = ({
<ContentContainer className={styles.contentContainer}>
<form onSubmit={handleSubmit}>
<div className={styles.searchWrapper}>
<h2>{t('search.labelSearchField')}</h2>
<h1>{t('search.labelSearchField')}</h1>
<div className={styles.rowWrapper}>
<div className={classNames(styles.row, styles.autoSuggestRow)}>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $buttonWidth: 180px;
.contentContainer {
margin-bottom: 2.375rem;

h2 {
h1 {
font-size: var(--fontsize-heading-xl);
font-weight: 500;
margin-top: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function LandingPageSearchForm({

return (
<div className={classnames(className, styles.landingPageSearch)}>
<h2>{tAppEvents('appEvents:home.search.title')}</h2>
<h1>{tAppEvents('appEvents:home.search.title')}</h1>
<div className={styles.searchRow}>
<div className={styles.autosuggestWrapper}>
<SearchAutosuggest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
position: relative;
}

h2 {
h1 {
font-size: var(--fontsize-heading-xl);
font-weight: 500;
margin-top: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const AdvancedSearch: React.FC<Props> = ({
<ContentContainer className={styles.contentContainer}>
<form onSubmit={handleSubmit}>
<div className={styles.searchWrapper}>
<h2>{t('search.labelSearchField')}</h2>
<h1>{t('search.labelSearchField')}</h1>
<div className={styles.rowWrapper}>
<div className={classNames(styles.row, styles.autoSuggestRow)}>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $buttonWidth: 180px;
.contentContainer {
margin-bottom: 2.375rem;

h2 {
h1 {
font-size: var(--fontsize-heading-xl);
font-weight: 500;
margin-top: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function LandingPageSearchForm({

return (
<div className={classnames(className, styles.landingPageSearch)}>
<h2>{tAppHobbies('appHobbies:home.search.title')}</h2>
<h1>{tAppHobbies('appHobbies:home.search.title')}</h1>
<div className={styles.searchRow}>
<div className={styles.autosuggestWrapper}>
<SearchAutosuggest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
position: relative;
}

h2 {
h1 {
font-size: var(--fontsize-heading-xl);
font-weight: 500;
margin-top: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const AdvancedSearchForm: React.FC<AdvancedSearchFormProps> = ({
return (
<form onSubmit={handleSubmit}>
<div className={styles.searchWrapper}>
<h2>{t('search.labelSearchField')}</h2>
<h1>{t('search.labelSearchField')}</h1>
<div className={styles.rowWrapper}>
<div className={classNames(styles.row, styles.autoSuggestRow)}>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $buttonWidth: 180px;
.contentContainer {
margin-bottom: 2.375rem;

h2 {
h1 {
font-size: var(--fontsize-heading-xl);
font-weight: 500;
margin-top: 2px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function LandingPageSearchForm({

return (
<div className={classnames(className, styles.landingPageSearch)}>
<h2>{tAppSports('appSports:home.search.title')}</h2>
<h1>{tAppSports('appSports:home.search.title')}</h1>
<div className={styles.searchRow}>
<div className={styles.autosuggestWrapper}>
<SearchAutosuggest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
position: relative;
}

h2 {
h1 {
font-size: var(--fontsize-heading-xl);
font-weight: 500;
margin-top: 0;
Expand Down

0 comments on commit 7be0f35

Please sign in to comment.