Tooltip: Remove extra data attribute (#12483)

* Update `@vector-im/compound-web`

* Update snapshots

* Update jest snapshotss

* Update snapshots
This commit is contained in:
Florian Duros 2024-05-06 10:54:40 +02:00 committed by GitHub
parent c121167087
commit f8e040a890
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
44 changed files with 22 additions and 143 deletions

View file

@ -15,7 +15,6 @@ exports[`AppTile destroys non-persisted right panel widget on room change 1`] =
<div
aria-label="Close"
class="mx_AccessibleButton mx_BaseCard_close"
data-state="closed"
data-testid="base-card-close-button"
role="button"
tabindex="0"
@ -138,7 +137,6 @@ exports[`AppTile for a pinned widget should render 1`] = `
<div
aria-label="Un-maximise"
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
data-state="closed"
role="button"
tabindex="0"
>
@ -149,7 +147,6 @@ exports[`AppTile for a pinned widget should render 1`] = `
<div
aria-label="Minimise"
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
data-state="closed"
role="button"
tabindex="0"
>
@ -226,7 +223,6 @@ exports[`AppTile for a pinned widget should render permission request 1`] = `
<div
aria-label="Un-maximise"
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
data-state="closed"
role="button"
tabindex="0"
>
@ -237,7 +233,6 @@ exports[`AppTile for a pinned widget should render permission request 1`] = `
<div
aria-label="Minimise"
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
data-state="closed"
role="button"
tabindex="0"
>
@ -381,7 +376,6 @@ exports[`AppTile preserves non-persisted widget on container move 1`] = `
<div
aria-label="Maximise"
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
data-state="closed"
role="button"
tabindex="0"
>
@ -392,7 +386,6 @@ exports[`AppTile preserves non-persisted widget on container move 1`] = `
<div
aria-label="Minimise"
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
data-state="closed"
role="button"
tabindex="0"
>

View file

@ -4,7 +4,6 @@ exports[`<FacePile /> renders with a tooltip 1`] = `
<DocumentFragment>
<div
class="mx_AccessibleButton mx_FacePile"
data-state="closed"
role="button"
tabindex="0"
>

View file

@ -24,42 +24,36 @@ exports[`<ImageView /> renders correctly 1`] = `
aria-describedby="floating-ui-2"
aria-label="Zoom out"
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomOut"
data-state="open"
role="button"
tabindex="0"
/>
<div
aria-label="Zoom in"
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomIn"
data-state="closed"
role="button"
tabindex="0"
/>
<div
aria-label="Rotate Left"
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_rotateCCW"
data-state="closed"
role="button"
tabindex="0"
/>
<div
aria-label="Rotate Right"
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_rotateCW"
data-state="closed"
role="button"
tabindex="0"
/>
<div
aria-label="Download"
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_download"
data-state="closed"
role="button"
tabindex="0"
/>
<div
aria-label="Close"
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_close"
data-state="closed"
role="button"
tabindex="0"
/>

View file

@ -5,7 +5,6 @@ exports[`InfoTooltip should show tooltip on hover 1`] = `
<div
aria-describedby="floating-ui-2"
class="mx_InfoTooltip"
data-state="open"
tabindex="0"
>
<span

View file

@ -11,7 +11,6 @@ exports[`<Pill> should not render an avatar or link when called with inMessage =
<div>
<bdi>
<span
data-state="closed"
tabindex="0"
>
<span
@ -34,7 +33,6 @@ exports[`<Pill> should render the expected pill for @room 1`] = `
<div>
<bdi>
<span
data-state="closed"
tabindex="0"
>
<span
@ -69,7 +67,6 @@ exports[`<Pill> should render the expected pill for a known user not in the room
<bdi>
<a
class="mx_Pill mx_UserPill"
data-state="closed"
href="https://matrix.to/#/@user2:example.com"
>
<span
@ -100,7 +97,6 @@ exports[`<Pill> should render the expected pill for a message in another room 1`
<bdi>
<a
class="mx_Pill mx_EventPill"
data-state="closed"
href="https://matrix.to/#/!room1:example.com/$123-456"
>
<span
@ -131,7 +127,6 @@ exports[`<Pill> should render the expected pill for a message in the same room 1
<bdi>
<a
class="mx_Pill mx_EventPill"
data-state="closed"
href="https://matrix.to/#/!room1:example.com/$123-456"
>
<span
@ -162,7 +157,6 @@ exports[`<Pill> should render the expected pill for a room alias 1`] = `
<bdi>
<a
class="mx_Pill mx_RoomPill"
data-state="closed"
href="https://matrix.to/#/#room1:example.com"
>
<span
@ -193,7 +187,6 @@ exports[`<Pill> should render the expected pill for a space 1`] = `
<bdi>
<a
class="mx_Pill mx_RoomPill"
data-state="closed"
href="https://matrix.to/#/!space1:example.com"
>
<span
@ -224,7 +217,6 @@ exports[`<Pill> should render the expected pill for an uknown user not in the ro
<bdi>
<a
class="mx_Pill mx_UserPill"
data-state="closed"
href="https://matrix.to/#/@user3:example.com"
>
<div
@ -247,7 +239,6 @@ exports[`<Pill> when rendering a pill for a room should render the expected pill
<bdi>
<a
class="mx_Pill mx_RoomPill"
data-state="closed"
href="https://matrix.to/#/!room1:example.com"
>
<span
@ -278,7 +269,6 @@ exports[`<Pill> when rendering a pill for a user in the room should render as ex
<bdi>
<a
class="mx_Pill mx_UserPill"
data-state="closed"
href="https://matrix.to/#/@user1:example.com"
>
<span

View file

@ -4,7 +4,6 @@ exports[`<RoomFacePile /> renders 1`] = `
<DocumentFragment>
<div
class="mx_AccessibleButton mx_FacePile"
data-state="closed"
role="button"
tabindex="0"
>