Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit d770e2a

Browse files
authored
Deduplicate icons using Compound Design Tokens (#150)
* Deduplicate icons using Compound Design Tokens Signed-off-by: Michael Telatynski <[email protected]> * Iterate Signed-off-by: Michael Telatynski <[email protected]> * Update snapshot Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]>
1 parent 63986f8 commit d770e2a

File tree

26 files changed

+82
-93
lines changed

26 files changed

+82
-93
lines changed
270 Bytes
Loading

res/css/structures/_AutocompleteInput.pcss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Please see LICENSE files in the repository root for full details.
6969
font-size: $font-12px;
7070
}
7171

72-
.mx_AutocompleteInput_editor_selection_remove_button {
73-
padding: 0 $spacing-4;
72+
.mx_AutocompleteInput_editor_selection_remove_button svg {
73+
vertical-align: middle;
7474
}
7575

7676
.mx_AutocompleteInput_matches {

res/css/structures/_RoomSearch.pcss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Please see LICENSE files in the repository root for full details.
2424
cursor: pointer;
2525

2626
.mx_RoomSearch_icon {
27-
width: 16px;
28-
height: 16px;
29-
mask: url("$(res)/img/element-icons/roomlist/search.svg");
27+
width: 20px;
28+
height: 20px;
29+
mask-image: url("@vector-im/compound-design-tokens/icons/search.svg");
3030
mask-repeat: no-repeat;
31+
mask-size: contain;
3132
background-color: $secondary-content;
32-
margin-left: 7px;
33-
margin-bottom: 2px;
33+
margin-left: var(--cpd-space-2x);
3434
flex-shrink: 0;
3535
}
3636

res/css/views/auth/_AuthBody.pcss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,14 @@ Please see LICENSE files in the repository root for full details.
5353
}
5454

5555
.mx_AuthBody_icon {
56-
width: 40px;
56+
width: 44px;
57+
height: 44px;
5758
}
5859

5960
.mx_AuthBody_lockIcon {
6061
color: $secondary-content;
6162
height: 32px;
62-
margin-bottom: -3px; /* tweak to align all icons on different forgot password steps */
63+
width: 32px;
6364
}
6465

6566
.mx_AuthBody_text {

res/css/views/dialogs/_InviteDialog.pcss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ Please see LICENSE files in the repository root for full details.
174174

175175
.mx_InviteDialog_userTile_remove {
176176
display: inline-block;
177-
margin-inline-start: $spacing-4;
178177
vertical-align: middle;
178+
179+
svg {
180+
vertical-align: middle;
181+
}
179182
}
180183
}
181184

res/img/compound/checkbox-32px.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

res/img/compound/error-16px.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

res/img/compound/padlock-32px.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

res/img/element-icons/Email-icon.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

res/img/element-icons/roomlist/search.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)