Accessibility improvements in settings (#32968)

* Add more playwright axe tests to settings dialogs

* Fix axe issue heading-order

* Fix heading order

* Iterate

* Update snapshots

* Iterate

* Update snapshots

* Iterate

* Update screenshot

* Iterate

* Iterate

* Update snapshot
This commit is contained in:
Michael Telatynski
2026-04-07 15:17:59 +00:00
committed by GitHub
parent 7fd837e723
commit 6c1dc7051f
49 changed files with 334 additions and 259 deletions
@@ -137,11 +137,11 @@ exports[`<CurrentDeviceSection /> handles when device is falsy 1`] = `
<div
class="mx_SettingsSubsectionHeading"
>
<h3
<h2
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Current session
</h3>
</h2>
<div
aria-disabled="true"
aria-expanded="false"
@@ -183,11 +183,11 @@ exports[`<CurrentDeviceSection /> renders device and correct security card when
<div
class="mx_SettingsSubsectionHeading"
>
<h3
<h2
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Current session
</h3>
</h2>
<div
aria-expanded="false"
aria-haspopup="true"
@@ -257,11 +257,11 @@ exports[`<CurrentDeviceSection /> renders device and correct security card when
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
alices_device
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>
@@ -370,11 +370,11 @@ exports[`<CurrentDeviceSection /> renders device and correct security card when
<div
class="mx_SettingsSubsectionHeading"
>
<h3
<h2
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Current session
</h3>
</h2>
<div
aria-expanded="false"
aria-haspopup="true"
@@ -444,11 +444,11 @@ exports[`<CurrentDeviceSection /> renders device and correct security card when
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
alices_device
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>
@@ -45,11 +45,11 @@ exports[`<DeviceTile /> renders a device with no metadata 1`] = `
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
123
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>
@@ -118,11 +118,11 @@ exports[`<DeviceTile /> renders a verified device with no metadata 1`] = `
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
123
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>
@@ -191,11 +191,11 @@ exports[`<DeviceTile /> renders display name with a tooltip 1`] = `
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
My device
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>
@@ -264,11 +264,11 @@ exports[`<DeviceTile /> separates metadata with a dot 1`] = `
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
123
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>
@@ -9,11 +9,11 @@ exports[`<SecurityRecommendations /> renders both cards when user has both unver
<div
class="mx_SettingsSubsectionHeading"
>
<h3
<h2
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Security recommendations
</h3>
</h2>
</div>
<div
class="mx_SettingsSubsection_description"
@@ -141,11 +141,11 @@ exports[`<SecurityRecommendations /> renders inactive devices section when user
<div
class="mx_SettingsSubsectionHeading"
>
<h3
<h2
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Security recommendations
</h3>
</h2>
</div>
<div
class="mx_SettingsSubsection_description"
@@ -273,11 +273,11 @@ exports[`<SecurityRecommendations /> renders unverified devices section when use
<div
class="mx_SettingsSubsectionHeading"
>
<h3
<h2
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
>
Security recommendations
</h3>
</h2>
</div>
<div
class="mx_SettingsSubsection_description"
@@ -101,11 +101,11 @@ exports[`<SelectableDeviceTile /> renders unselected device tile with checkbox 1
<div
class="mx_DeviceTile_info"
>
<h4
<h3
class="mx_Heading_h4"
>
My Device
</h4>
</h3>
<div
class="mx_DeviceTile_metadata"
>