Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b93c479
Switch to rendered svg for Field select decoration instead of SVG mask
t3chguy Jan 16, 2026
53af0d7
Replace warning.svg with Compound icon
t3chguy Jan 16, 2026
4c2bd17
Replace device kind icons with Compound
t3chguy Jan 16, 2026
383c6c5
Draw notification badge decoration using SVG rather than CSS masks
t3chguy Jan 16, 2026
ac8e195
Replace {collapse,expand}-message icons with Compound
t3chguy Jan 16, 2026
fd23cf0
Remove stale icon prefetch
t3chguy Jan 16, 2026
56e5c4a
Render icons in AddExistingToSpaceDialog using SVGs rather than CSS m…
t3chguy Jan 16, 2026
e8ef80b
Render icons in Jitsi landing page using SVGs rather than CSS masks
t3chguy Jan 16, 2026
8e35a5d
Delint
t3chguy Jan 16, 2026
df1aae2
Update snapshots
t3chguy Jan 16, 2026
4dbb453
Update screenshot
t3chguy Jan 16, 2026
5033822
Fix field label
t3chguy Jan 16, 2026
0248857
Update snapshots
t3chguy Jan 16, 2026
618742d
Add tests
t3chguy Jan 19, 2026
10479bf
Revert icon colour
t3chguy Jan 19, 2026
b97763b
Switch to rendering icons as SVG over CSS masks in PollOption
t3chguy Jan 19, 2026
4423f57
Switch to rendering icons as SVG over CSS masks in AnalyticsLearnMore…
t3chguy Jan 19, 2026
009330e
Remove unused class
t3chguy Jan 19, 2026
9ff42fb
Switch to rendering icons as SVG over CSS masks in customisedCancelBu…
t3chguy Jan 19, 2026
182a947
Switch to rendering icons as SVG over CSS masks in ThreadSummaryIcon …
t3chguy Jan 19, 2026
4a0a633
Switch to rendering icons as SVG over CSS masks in LegacyCallButton m…
t3chguy Jan 19, 2026
0919b1f
Remove unused classes in TabbedView
t3chguy Jan 19, 2026
4f0ac88
Merge branch 'develop' of ssh://github.com/element-hq/element-web int…
t3chguy Jan 19, 2026
da7e2a6
delint
t3chguy Jan 19, 2026
5b67dd2
Merge branch 'develop' of ssh://github.com/element-hq/element-web int…
t3chguy Jan 19, 2026
2acee6e
delint
t3chguy Jan 19, 2026
88a09cd
Update snapshots
t3chguy Jan 19, 2026
3253974
Fix `[Object object]`
t3chguy Jan 19, 2026
dc68210
Fix layout issue
t3chguy Jan 19, 2026
3d880fa
Improve coverage
t3chguy Jan 19, 2026
b8fafa8
Merge branch 'develop' into t3chguy/icons-20260119
t3chguy Jan 21, 2026
05bc1bd
Merge branch 'develop' into t3chguy/icons-20260119
t3chguy Jan 21, 2026
12c70de
Merge remote-tracking branch 'origin/t3chguy/icons-20260119' into t3c…
t3chguy Jan 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 19 additions & 34 deletions res/css/_common.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -496,29 +496,20 @@ legend {
}

@define-mixin customisedCancelButton {
cursor: pointer;
position: relative;
width: 28px;
height: 28px;
width: 20px;
height: 20px;
padding: var(--cpd-space-1x);
border-radius: 14px;
background-color: var(--cpd-color-bg-subtle-secondary);

&:hover {
background-color: var(--cpd-color-bg-subtle-primary);
}

&::before {
content: "";
width: 28px;
height: 28px;
left: 0;
top: 0;
position: absolute;
mask-image: url("@vector-im/compound-design-tokens/icons/close.svg");
mask-repeat: no-repeat;
mask-position: center;
mask-size: 20px;
background-color: var(--cpd-color-icon-secondary);
svg {
width: inherit;
height: inherit;
color: var(--cpd-color-icon-secondary);
}
}

Expand Down Expand Up @@ -858,18 +849,16 @@ legend {
line-height: $font-24px;
margin-right: 0;

span {
display: flex;
align-items: center;
display: flex;
align-items: center;

&::before {
content: "";
display: inline-block;
background-color: $button-fg-color;
mask-position: center;
mask-repeat: no-repeat;
margin-right: 8px;
}
svg {
width: 16px;
height: 16px;
display: inline-block;
color: $button-fg-color;
margin-right: 8px;
vertical-align: middle;
}
}

Expand All @@ -882,15 +871,11 @@ legend {
}

@define-mixin ThreadSummaryIcon {
content: "";
display: inline-block;
mask-image: url("@vector-im/compound-design-tokens/icons/threads.svg");
mask-position: center;
mask-repeat: no-repeat;
mask-size: contain;
height: 18px;
min-width: 18px;
background-color: $icon-button-color !important;
width: 18px;
flex-shrink: 0;
color: $icon-button-color;
}

@define-mixin composerButtonHighLight {
Expand Down
27 changes: 9 additions & 18 deletions res/css/components/views/polls/_PollOption.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -59,28 +59,19 @@ Please see LICENSE files in the repository root for full details.
/* override checked radio button styling to show checkmark instead */
.mx_StyledRadioButton_checked {
input[type="radio"]:checked + div {
position: relative;
border-width: 2px;
border-color: var(--cpd-color-icon-primary);
background-color: var(--cpd-color-icon-primary);

&::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
mask-image: url("@vector-im/compound-design-tokens/icons/check.svg");
mask-size: 12px 12px;
mask-repeat: no-repeat;
mask-position: center;
background-color: var(--cpd-color-icon-on-solid-primary);
width: 12px;
height: 12px;
}

div {
visibility: hidden;
background: none;

svg {
color: var(--cpd-color-icon-on-solid-primary);
width: 12px;
height: 12px;
margin: -2px;
display: block;
}
}
}
}
Expand Down
50 changes: 0 additions & 50 deletions res/css/structures/_TabbedView.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,11 @@ Please see LICENSE files in the repository root for full details.
.mx_TabbedView_tabLabel:hover,
.mx_TabbedView_tabLabel_active {
color: $tab-label-active-fg-color;

.mx_TabbedView_maskedIcon::before {
background-color: var(--cpd-color-icon-primary);
}
}

.mx_TabbedView_tabLabel_active {
background-color: var(--cpd-color-bg-subtle-secondary);
}

.mx_TabbedView_maskedIcon {
width: 20px;
height: 20px;
margin-right: var(--cpd-space-3x);
}

.mx_TabbedView_maskedIcon::before {
mask-size: 20px;
width: 20px;
height: 20px;
transition: background-color 0.1s;
}
}

.mx_TabbedView_tabsOnTop {
Expand Down Expand Up @@ -89,23 +72,6 @@ Please see LICENSE files in the repository root for full details.
color: $accent;
}
}

.mx_TabbedView_tabLabel_active .mx_TabbedView_maskedIcon::before {
background-color: $accent;
}

.mx_TabbedView_maskedIcon {
width: 22px;
height: 22px;
margin-left: 0px;
margin-right: 8px;
}

.mx_TabbedView_maskedIcon::before {
mask-size: 22px;
width: inherit;
height: inherit;
}
}

.mx_TabbedView_tabLabels {
Expand Down Expand Up @@ -136,18 +102,6 @@ Please see LICENSE files in the repository root for full details.
}
}

.mx_TabbedView_maskedIcon {
display: inline-block;
}

.mx_TabbedView_maskedIcon::before {
display: inline-block;
background-color: var(--cpd-color-icon-secondary);
mask-repeat: no-repeat;
mask-position: center;
content: "";
}

.mx_TabbedView_tabLabel_text {
vertical-align: middle;
}
Expand All @@ -173,10 +127,6 @@ Please see LICENSE files in the repository root for full details.
.mx_TabbedView_tabPanel {
margin-left: 72px; /* 40px sidebar + 32px padding */
}
.mx_TabbedView_maskedIcon {
margin-right: auto;
margin-left: auto;
}
.mx_TabbedView_tabLabels {
width: auto;
}
Expand Down
9 changes: 2 additions & 7 deletions res/css/views/dialogs/_AnalyticsLearnMoreDialog.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,13 @@ Please see LICENSE files in the repository root for full details.
vertical-align: middle;
position: relative;

&::before {
content: "";
svg {
position: absolute;
width: 26px;
height: 26px;
left: 0;
top: 0;
background-color: #0dbd8b;
mask-image: url("@vector-im/compound-design-tokens/icons/check-circle.svg");
mask-repeat: no-repeat;
mask-position: center;
mask-size: contain;
color: #0dbd8b;
}
}
}
90 changes: 15 additions & 75 deletions res/css/views/messages/_LegacyCallEvent.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -37,50 +37,6 @@ Please see LICENSE files in the repository root for full details.
}
}

&.mx_LegacyCallEvent_voice {
.mx_LegacyCallEvent_type_icon::before,
.mx_LegacyCallEvent_content_button_callBack span::before,
.mx_LegacyCallEvent_content_button_answer span::before {
mask-image: url("@vector-im/compound-design-tokens/icons/voice-call-solid.svg");
}

&.mx_LegacyCallEvent_rejected,
&.mx_LegacyCallEvent_noAnswer {
.mx_LegacyCallEvent_type_icon::before {
mask-image: url("@vector-im/compound-design-tokens/icons/end-call.svg");
}
}
}

&.mx_LegacyCallEvent_video {
.mx_LegacyCallEvent_type_icon::before,
.mx_LegacyCallEvent_content_button_callBack span::before,
.mx_LegacyCallEvent_content_button_answer span::before {
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-solid.svg");
}

&.mx_LegacyCallEvent_rejected,
&.mx_LegacyCallEvent_noAnswer {
.mx_LegacyCallEvent_type_icon::before {
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-declined-solid.svg");
}
}
}

&.mx_LegacyCallEvent_missed {
&.mx_LegacyCallEvent_voice {
.mx_LegacyCallEvent_type_icon::before {
mask-image: url("@vector-im/compound-design-tokens/icons/voice-call-missed-solid.svg");
}
}

&.mx_LegacyCallEvent_video {
.mx_LegacyCallEvent_type_icon::before {
mask-image: url("@vector-im/compound-design-tokens/icons/video-call-missed-solid.svg");
}
}
}

.mx_LegacyCallEvent_info {
display: flex;
flex-direction: row;
Expand All @@ -106,26 +62,8 @@ Please see LICENSE files in the repository root for full details.
}

.mx_LegacyCallEvent_type {
display: flex;
align-items: center;
font-weight: 400;
color: $secondary-content;

.mx_LegacyCallEvent_type_icon {
height: 13px;
width: 13px;
margin-right: 5px;

&::before {
content: "";
position: absolute;
height: 13px;
width: 13px;
background-color: $secondary-content;
mask-repeat: no-repeat;
mask-size: contain;
}
}
}
}
}
Expand All @@ -145,19 +83,6 @@ Please see LICENSE files in the repository root for full details.
@mixin LegacyCallButton;
padding: 0 $spacing-12;
font-size: inherit;

span::before {
mask-size: 16px;
width: 16px;
height: 16px;
flex-shrink: 0;
}
}

.mx_LegacyCallEvent_content_button_reject {
span::before {
mask-image: url("@vector-im/compound-design-tokens/icons/end-call.svg");
}
}

.mx_LegacyCallEvent_content_tooltip {
Expand Down Expand Up @@ -189,6 +114,21 @@ Please see LICENSE files in the repository root for full details.
}
}

.mx_LegacyCallEvent_type_icon {
height: 16px;
width: 16px;
margin-right: 6px;
display: inline-block;
vertical-align: -2px;

svg {
position: absolute;
height: inherit;
width: inherit;
color: $tertiary-content;
}
}

.mx_EventTile[data-layout="bubble"] {
.mx_EventTile_e2eIcon + .mx_LegacyCallEvent_wrapper {
.mx_LegacyCallEvent {
Expand Down
8 changes: 0 additions & 8 deletions res/css/views/right_panel/_VerificationPanel.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ Please see LICENSE files in the repository root for full details.
}
}

.mx_EncryptionPanel_cancel {
@mixin customisedCancelButton;
position: absolute;
z-index: 100;
top: 14px;
right: 14px;
}

.mx_VerificationPanel_qrCode {
padding: 4px 4px 0 4px;
background: white;
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_EventTile.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ $left-gutter: 64px;
position: relative;
font: var(--cpd-font-body-sm-regular);

&::before {
> svg {
@mixin ThreadSummaryIcon;
}

Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_ThreadSummary.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Please see LICENSE files in the repository root for full details.
display: inline-block;
margin-bottom: $spacing-8;

&::before {
> svg {
@mixin ThreadSummaryIcon;
vertical-align: middle;
margin-inline-end: $spacing-8;
Expand Down
Loading
Loading