This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
De-duplicate icons using Compound Design Tokens #861
Annotations
10 errors
Run tests:
test/components/views/settings/tabs/user/SessionManagerTab-test.tsx#L440
expect(received).toMatchSnapshot()
Snapshot name: `<SessionManagerTab /> current session section renders current session section with an unverified session 1`
- Snapshot - 1
+ Received + 10
@@ -90,13 +90,22 @@
class="mx_AccessibleButton mx_DeviceExpandDetailsButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_icon"
data-testid="current-session-toggle-details"
role="button"
tabindex="0"
>
- <div
+ <svg
class="mx_DeviceExpandDetailsButton_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 14.95c-.133 0-.258-.02-.375-.063a.876.876 0 0 1-.325-.212l-4.6-4.6a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l3.9 3.9 3.9-3.9a.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275.948.948 0 0 1 .275.7.948.948 0 0 1-.275.7l-4.6 4.6c-.1.1-.208.17-.325.212a1.106 1.106 0 0 1-.375.063Z"
/>
+ </svg>
</div>
</div>
</div>
<br />
<div
at Object.toMatchSnapshot (test/components/views/settings/tabs/user/SessionManagerTab-test.tsx:440:60)
|
Run tests:
test/components/views/settings/tabs/user/SessionManagerTab-test.tsx#L475
expect(received).toMatchSnapshot()
Snapshot name: `<SessionManagerTab /> current session section renders current session section with a verified session 1`
- Snapshot - 1
+ Received + 10
@@ -90,13 +90,22 @@
class="mx_AccessibleButton mx_DeviceExpandDetailsButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_icon"
data-testid="current-session-toggle-details"
role="button"
tabindex="0"
>
- <div
+ <svg
class="mx_DeviceExpandDetailsButton_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 14.95c-.133 0-.258-.02-.375-.063a.876.876 0 0 1-.325-.212l-4.6-4.6a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l3.9 3.9 3.9-3.9a.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275.948.948 0 0 1 .275.7.948.948 0 0 1-.275.7l-4.6 4.6c-.1.1-.208.17-.325.212a1.106 1.106 0 0 1-.375.063Z"
/>
+ </svg>
</div>
</div>
</div>
<br />
<div
at Object.toMatchSnapshot (test/components/views/settings/tabs/user/SessionManagerTab-test.tsx:475:60)
|
Run tests:
test/components/views/beacon/BeaconViewDialog-test.tsx#L173
expect(received).toMatchSnapshot()
Snapshot name: `<BeaconViewDialog /> renders a fallback when there are no locations 1`
- Snapshot - 1
+ Received + 10
@@ -3,13 +3,22 @@
data-testid="beacon-view-dialog-map-fallback"
>
<div
class="mx_MapFallback_bg"
/>
- <div
+ <svg
class="mx_MapFallback_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 21.325a2.07 2.07 0 0 1-.7-.125 1.84 1.84 0 0 1-.625-.375A39.112 39.112 0 0 1 7.8 17.9c-.833-.95-1.53-1.87-2.087-2.762-.559-.892-.984-1.75-1.276-2.575C4.146 11.738 4 10.95 4 10.2c0-2.5.804-4.492 2.412-5.975C8.021 2.742 9.883 2 12 2s3.98.742 5.587 2.225C19.197 5.708 20 7.7 20 10.2c0 .75-.146 1.538-.438 2.363-.291.824-.716 1.683-1.274 2.574A21.678 21.678 0 0 1 16.2 17.9a39.112 39.112 0 0 1-2.875 2.925 1.84 1.84 0 0 1-.625.375 2.07 2.07 0 0 1-.7.125ZM12 12c.55 0 1.02-.196 1.412-.588.392-.391.588-.862.588-1.412 0-.55-.196-1.02-.588-1.412A1.926 1.926 0 0 0 12 8c-.55 0-1.02.196-1.412.588A1.926 1.926 0 0 0 10 10c0 .55.196 1.02.588 1.412.391.392.862.588 1.412.588Z"
/>
+ </svg>
<span
class="mx_BeaconViewDialog_mapFallbackMessage"
>
No live locations
</span>
at Object.toMatchSnapshot (test/components/views/beacon/BeaconViewDialog-test.tsx:173:64)
|
Run tests:
test/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody-test.tsx#L221
expect(received).toMatchSnapshot()
Snapshot name: `VoiceBroadcastPlaybackBody when rendering an error broadcast should render as expected 1`
- Snapshot - 2
+ Received + 11
@@ -59,12 +59,21 @@
</div>
</div>
<div
class="mx_VoiceBroadcastRecordingConnectionError"
>
- <div
+ <svg
class="mx_Icon mx_Icon_16"
- />
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 17a.97.97 0 0 0 .713-.288A.968.968 0 0 0 13 16a.968.968 0 0 0-.287-.713A.968.968 0 0 0 12 15a.968.968 0 0 0-.713.287A.968.968 0 0 0 11 16c0 .283.096.52.287.712.192.192.43.288.713.288Zm0-4c.283 0 .52-.096.713-.287A.968.968 0 0 0 13 12V8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8v4c0 .283.096.52.287.713.192.191.43.287.713.287Zm0 9a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Z"
+ />
+ </svg>
Unable to play this voice broadcast
</div>
</div>
</div>
at Object.toMatchSnapshot (test/voice-broadcast/components/molecules/VoiceBroadcastPlaybackBody-test.tsx:221:44)
|
Run tests:
test/components/views/elements/Pill-test.tsx#L235
expect(received).toMatchSnapshot()
Snapshot name: `<Pill> should render the expected pill for an uknown user not in the room 1`
- Snapshot - 1
+ Received + 13
@@ -3,13 +3,25 @@
<bdi>
<a
class="mx_Pill mx_UserPill"
href="https://matrix.to/#/@user3:example.com"
>
- <div
+ <svg
class="mx_Pill_UserIcon mx_BaseAvatar"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 15c-1.1 0-2.042-.392-2.825-1.175C8.392 13.042 8 12.1 8 11s.392-2.042 1.175-2.825C9.958 7.392 10.9 7 12 7s2.042.392 2.825 1.175C15.608 8.958 16 9.9 16 11s-.392 2.042-1.175 2.825C14.042 14.608 13.1 15 12 15Z"
+ />
+ <path
+ d="M19.528 18.583A9.962 9.962 0 0 0 22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 2.52.933 4.824 2.472 6.583A9.976 9.976 0 0 0 12 22a9.976 9.976 0 0 0 7.528-3.417ZM8.75 16.388c-.915.221-1.818.538-2.709.95a8 8 0 1 1 11.918 0 14.679 14.679 0 0 0-2.709-.95A13.76 13.76 0 0 0 12 16c-1.1 0-2.183.13-3.25.387Z"
/>
+ </svg>
<span
class="mx_Pill_text"
>
@user3:example.com
</span>
at Object.toMatchSnapshot (test/components/views/elements/Pill-test.tsx:235:43)
|
Run tests:
test/components/views/messages/MLocationBody-test.tsx#L131
expect(received).toMatchSnapshot()
Snapshot name: `MLocationBody <MLocationBody> without error renders map correctly 1`
- Snapshot - 1
+ Received + 10
@@ -15,13 +15,22 @@
id="mx_MLocationBody_$2_vY7Q4uEh-marker"
>
<div
class="mx_Marker_border"
>
- <div
+ <svg
class="mx_Marker_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 21.325a2.07 2.07 0 0 1-.7-.125 1.84 1.84 0 0 1-.625-.375A39.112 39.112 0 0 1 7.8 17.9c-.833-.95-1.53-1.87-2.087-2.762-.559-.892-.984-1.75-1.276-2.575C4.146 11.738 4 10.95 4 10.2c0-2.5.804-4.492 2.412-5.975C8.021 2.742 9.883 2 12 2s3.98.742 5.587 2.225C19.197 5.708 20 7.7 20 10.2c0 .75-.146 1.538-.438 2.363-.291.824-.716 1.683-1.274 2.574A21.678 21.678 0 0 1 16.2 17.9a39.112 39.112 0 0 1-2.875 2.925 1.84 1.84 0 0 1-.625.375 2.07 2.07 0 0 1-.7.125ZM12 12c.55 0 1.02-.196 1.412-.588.392-.391.588-.862.588-1.412 0-.55-.196-1.02-.588-1.412A1.926 1.926 0 0 0 12 8c-.55 0-1.02.196-1.412.588A1.926 1.926 0 0 0 10 10c0 .55.196 1.02.588 1.412.391.392.862.588 1.412.588Z"
/>
+ </svg>
</div>
</div>
</span>
</div>
</div>
at Object.toMatchSnapshot (test/components/views/messages/MLocationBody-test.tsx:131:48)
|
Run tests:
test/components/views/messages/DecryptionFailureBody-test.tsx#L118
expect(received).toMatchSnapshot()
Snapshot name: `DecryptionFailureBody should handle messages from users who change identities after verification 1`
- Snapshot - 1
+ Received + 10
<div>
<div
class="mx_DecryptionFailureBody mx_EventTile_content mx_DecryptionFailureVerifiedIdentityChanged"
>
<span>
- <div
+ <svg
class="mx_Icon mx_Icon_16"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 17a.97.97 0 0 0 .713-.288A.968.968 0 0 0 13 16a.968.968 0 0 0-.287-.713A.968.968 0 0 0 12 15a.968.968 0 0 0-.713.287A.968.968 0 0 0 11 16c0 .283.096.52.287.712.192.192.43.288.713.288Zm0-4c.283 0 .52-.096.713-.287A.968.968 0 0 0 13 12V8a.967.967 0 0 0-.287-.713A.968.968 0 0 0 12 7a.968.968 0 0 0-.713.287A.967.967 0 0 0 11 8v4c0 .283.096.52.287.713.192.191.43.287.713.287Zm0 9a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12a9.74 9.74 0 0 1 .788-3.9 10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2a9.74 9.74 0 0 1 3.9.788 10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Z"
/>
+ </svg>
Verified identity has changed
</span>
</div>
</div>
at Object.toMatchSnapshot (test/components/views/messages/DecryptionFailureBody-test.tsx:118:27)
|
Run tests:
test/components/views/settings/devices/CurrentDeviceSection-test.tsx#L54
expect(received).toMatchSnapshot()
Snapshot name: `<CurrentDeviceSection /> renders device and correct security card when device is verified 1`
- Snapshot - 1
+ Received + 10
@@ -91,13 +91,22 @@
class="mx_AccessibleButton mx_DeviceExpandDetailsButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_icon"
data-testid="current-session-toggle-details"
role="button"
tabindex="0"
>
- <div
+ <svg
class="mx_DeviceExpandDetailsButton_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 14.95c-.133 0-.258-.02-.375-.063a.876.876 0 0 1-.325-.212l-4.6-4.6a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l3.9 3.9 3.9-3.9a.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275.948.948 0 0 1 .275.7.948.948 0 0 1-.275.7l-4.6 4.6c-.1.1-.208.17-.325.212a1.106 1.106 0 0 1-.375.063Z"
/>
+ </svg>
</div>
</div>
</div>
<br />
<div
at Object.toMatchSnapshot (test/components/views/settings/devices/CurrentDeviceSection-test.tsx:54:27)
|
Run tests:
test/components/views/settings/devices/CurrentDeviceSection-test.tsx#L59
expect(received).toMatchSnapshot()
Snapshot name: `<CurrentDeviceSection /> renders device and correct security card when device is unverified 1`
- Snapshot - 1
+ Received + 10
@@ -91,13 +91,22 @@
class="mx_AccessibleButton mx_DeviceExpandDetailsButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_icon"
data-testid="current-session-toggle-details"
role="button"
tabindex="0"
>
- <div
+ <svg
class="mx_DeviceExpandDetailsButton_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 14.95c-.133 0-.258-.02-.375-.063a.876.876 0 0 1-.325-.212l-4.6-4.6a.948.948 0 0 1-.275-.7.95.95 0 0 1 .275-.7.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275l3.9 3.9 3.9-3.9a.948.948 0 0 1 .7-.275.95.95 0 0 1 .7.275.948.948 0 0 1 .275.7.948.948 0 0 1-.275.7l-4.6 4.6c-.1.1-.208.17-.325.212a1.106 1.106 0 0 1-.375.063Z"
/>
+ </svg>
</div>
</div>
</div>
<br />
<div
at Object.toMatchSnapshot (test/components/views/settings/devices/CurrentDeviceSection-test.tsx:59:27)
|
Run tests:
test/components/views/location/LocationViewDialog-test.tsx#L36
expect(received).toMatchSnapshot()
Snapshot name: `<LocationViewDialog /> renders map correctly 1`
- Snapshot - 2
+ Received + 20
@@ -8,13 +8,22 @@
id="mx_LocationViewDialog_$2-marker"
>
<div
class="mx_Marker_border"
>
- <div
+ <svg
class="mx_Marker_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M12 21.325a2.07 2.07 0 0 1-.7-.125 1.84 1.84 0 0 1-.625-.375A39.112 39.112 0 0 1 7.8 17.9c-.833-.95-1.53-1.87-2.087-2.762-.559-.892-.984-1.75-1.276-2.575C4.146 11.738 4 10.95 4 10.2c0-2.5.804-4.492 2.412-5.975C8.021 2.742 9.883 2 12 2s3.98.742 5.587 2.225C19.197 5.708 20 7.7 20 10.2c0 .75-.146 1.538-.438 2.363-.291.824-.716 1.683-1.274 2.574A21.678 21.678 0 0 1 16.2 17.9a39.112 39.112 0 0 1-2.875 2.925 1.84 1.84 0 0 1-.625.375 2.07 2.07 0 0 1-.7.125ZM12 12c.55 0 1.02-.196 1.412-.588.392-.391.588-.862.588-1.412 0-.55-.196-1.02-.588-1.412A1.926 1.926 0 0 0 12 8c-.55 0-1.02.196-1.412.588A1.926 1.926 0 0 0 10 10c0 .55.196 1.02.588 1.412.391.392.862.588 1.412.588Z"
/>
+ </svg>
</div>
</div>
</span>
<div
class="mx_ZoomButtons"
@@ -25,13 +34,22 @@
class="mx_AccessibleButton mx_ZoomButtons_button"
data-testid="map-zoom-in-button"
role="button"
tabindex="0"
>
- <div
+ <svg
class="mx_ZoomButtons_icon"
+ fill="currentColor"
+ height="1em"
+ viewBox="0 0 24 24"
+ width="1em"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ d="M11 13H6a.967.967 0 0 1-.713-.287A.968.968 0 0 1 5 12c0-.283.096-.52.287-.713A.967.967 0 0 1 6 11h5V6c0-.283.096-.52.287-.713A.968.968 0 0 1 12 5c.283 0 .52.096.713.287.191.192.287.43.287.713v5h5a.97.97 0 0 1 .712.287c.192.192.288.43.288.713s-.096.52-.288.713A.968.968 0 0 1 18 13h-5v5a.97.97 0 0 1-.287.712A.968.968 0 0 1 12 19a.968.968 0 0 1-.713-.288A.968.968 0 0 1 11 18v-5Z"
/>
+ </svg>
</div>
<div
aria-label="Zoom out"
class="mx_AccessibleButton mx_ZoomButtons_button"
data-testid="map-zoom-out-button"
at Object.toMatchSnapshot (test/components/views/location/LocationViewDialog-test.tsx:36:52)
|
Loading