Fix big date separators when jump to date is enabled (#10404)

Fix https://github.com/vector-im/element-web/issues/22969
This commit is contained in:
Eric Eastwood 2023-03-20 11:03:36 -05:00 committed by GitHub
parent 5b2e12ca0c
commit 7a68bd9cef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 19 deletions

View file

@ -11,11 +11,16 @@ exports[`DateSeparator renders the date separator correctly 1`] = `
<hr
role="none"
/>
<h2
aria-hidden="true"
<div
class="mx_DateSeparator_dateContent"
>
Today
</h2>
<h2
aria-hidden="true"
class="mx_DateSeparator_dateHeading"
>
Today
</h2>
</div>
<hr
role="none"
/>
@ -38,12 +43,13 @@ exports[`DateSeparator when feature_jump_to_date is enabled renders the date sep
aria-expanded="false"
aria-haspopup="true"
aria-label="Jump to date"
class="mx_AccessibleButton mx_DateSeparator_jumpToDateMenu"
class="mx_AccessibleButton mx_DateSeparator_jumpToDateMenu mx_DateSeparator_dateContent"
role="button"
tabindex="0"
>
<h2
aria-hidden="true"
class="mx_DateSeparator_dateHeading"
>
Fri, Dec 17 2021
</h2>