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

Commit 54898a6

Browse files
committed
Fix black-on-black GIF icon for stickers
Text colour ended up being the link colour on images because the whole image is in an `a`, but stickers are not so it got the default font colour, which might be black. Define an explicit colour. Also set pointer-events: none so you can hover over the gif icon too (I managed to make the message panel small which made the icon cover most the image, so this prevented the gif from animating at all). Fixes element-hq/element-web#8004
1 parent 5fb6da8 commit 54898a6

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

res/css/views/messages/_MImageBody.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,6 @@ limitations under the License.
5656
border-radius: 5px;
5757
background: $imagebody-giflabel;
5858
border: 2px solid $imagebody-giflabel-border;
59+
color: $imagebody-giflabel-color;
60+
pointer-events: none;
5961
}

res/themes/dark/css/_dark.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ $lightbox-border-color: #ffffff;
164164

165165
$imagebody-giflabel: rgba(1, 1, 1, 0.7);
166166
$imagebody-giflabel-border: rgba(1, 1, 1, 0.2);
167+
$imagebody-giflabel-color: rgba(0, 0, 0, 1);
167168

168169
// unused?
169170
$progressbar-color: #000;

res/themes/dharma/css/_dharma.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ $lightbox-background-bg-color: #000;
9999

100100
$imagebody-giflabel: rgba(0, 0, 0, 0.7);
101101
$imagebody-giflabel-border: rgba(0, 0, 0, 0.2);
102+
$imagebody-giflabel-color: rgba(255, 255, 255, 1);
102103

103104
$greyed-fg-color: #888;
104105

res/themes/light/css/_base.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ $lightbox-border-color: #ffffff;
177177

178178
$imagebody-giflabel: rgba(0, 0, 0, 0.7);
179179
$imagebody-giflabel-border: rgba(0, 0, 0, 0.2);
180+
$imagebody-giflabel-color: rgba(255, 255, 255, 1);
180181

181182
// unused?
182183
$progressbar-color: #000;

0 commit comments

Comments
 (0)