This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Have pills use solid backgrounds rather than colored images
Similar to room and member avatars, pills now use colored pseudo-elements rather than background images. Signed-off-by: Clark Fischer <clark.fischer@gmail.com>
- Loading branch information
Showing
5 changed files
with
148 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`RoomPillPart matches snapshot (avatar) 1`] = ` | ||
<span | ||
class="mx_Pill mx_RoomPill" | ||
contenteditable="false" | ||
spellcheck="false" | ||
style="--avatar-background: url('http://this.is.a.url/www.example.com/avatars/room1.jpeg'); --avatar-letter: '';" | ||
> | ||
!room:example.com | ||
</span> | ||
`; | ||
|
||
exports[`RoomPillPart matches snapshot (no avatar) 1`] = ` | ||
<span | ||
class="mx_Pill mx_RoomPill" | ||
contenteditable="false" | ||
spellcheck="false" | ||
style="--avatar-background: #ac3ba8; --avatar-letter: '!';" | ||
> | ||
!room:example.com | ||
</span> | ||
`; | ||
|
||
exports[`UserPillPart matches snapshot (avatar) 1`] = ` | ||
<span | ||
class="mx_UserPill mx_Pill" | ||
contenteditable="false" | ||
spellcheck="false" | ||
style="--avatar-background: url('http://this.is.a.url/www.example.com/avatar.png'); --avatar-letter: '';" | ||
> | ||
DisplayName | ||
</span> | ||
`; | ||
|
||
exports[`UserPillPart matches snapshot (no avatar) 1`] = ` | ||
<span | ||
class="mx_UserPill mx_Pill" | ||
contenteditable="false" | ||
spellcheck="false" | ||
style="--avatar-background: #ac3ba8; --avatar-letter: 'U';" | ||
> | ||
DisplayName | ||
</span> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters