MDL-80183 message: render user online status as an accessible icon.

This commit is contained in:
Paul Holden 2024-02-22 11:27:46 +00:00
parent d3ad77e476
commit 45f83c203f
No known key found for this signature in database
GPG Key ID: A81A96D6045F6164
7 changed files with 22 additions and 24 deletions

View File

@ -65,7 +65,9 @@
style="height: 38px"
>
{{#showonlinestatus}}
<span class="contact-status {{#isonline}}online{{/isonline}}"></span>
<span class="contact-status icon-size-2 {{#isonline}}online{{/isonline}}">
{{#isonline}} {{#pix}} t/online, core, {{#str}} online, core_message {{/str}} {{/pix}} {{/isonline}}
</span>
{{/showonlinestatus}}
<h6 class="ml-2 font-weight-bold">{{#highlight}}{{{highlight}}}{{/highlight}}{{^highlight}}{{fullname}}{{/highlight}}</h6>
<div

View File

@ -54,7 +54,9 @@
>
{{/imageurl}}
{{#showonlinestatus}}
<span class="contact-status {{#isonline}}online{{/isonline}}"></span>
<span class="contact-status icon-size-2 {{#isonline}}online{{/isonline}}">
{{#isonline}} {{#pix}} t/online, core, {{#str}} online, core_message {{/str}} {{/pix}} {{/isonline}}
</span>
{{/showonlinestatus}}
<div class="w-100 text-truncate ml-2 my-2">
<div class="d-flex">

View File

@ -64,7 +64,9 @@
style="height: 38px"
>
{{#showonlinestatus}}
<span class="contact-status {{#isonline}}online{{/isonline}}"></span>
<span class="contact-status icon-size-2 {{#isonline}}online{{/isonline}}">
{{#isonline}} {{#pix}} t/online, core, {{#str}} online, core_message {{/str}} {{/pix}} {{/isonline}}
</span>
{{/showonlinestatus}}
<div class="w-100 text-truncate ml-2">
<div class="d-flex">

View File

@ -59,7 +59,9 @@
style="height: 38px"
>
{{#showonlinestatus}}
<span class="contact-status {{#isonline}}online{{/isonline}}"></span>
<span class="contact-status icon-size-2 {{#isonline}}online{{/isonline}}">
{{#isonline}} {{#pix}} t/online, core, {{#str}} online, core_message {{/str}} {{/pix}} {{/isonline}}
</span>
{{/showonlinestatus}}
<h6 class="ml-2">{{fullname}}</h6>
<div

View File

@ -442,13 +442,11 @@ $message-day-color: color-yiq($message-app-bg) !default;
.contact-status {
position: absolute;
left: 39px;
top: 39px;
width: 10px;
height: 10px;
border-radius: 50%;
top: 34px;
&.online {
border: 1px solid $body-bg;
background-color: $green;
.icon {
color: $green;
}
}
}

View File

@ -31565,14 +31565,10 @@ a.ygtvspacer:hover {
.message-app .contact-status {
position: absolute;
left: 39px;
top: 39px;
width: 10px;
height: 10px;
border-radius: 50%;
top: 34px;
}
.message-app .contact-status.online {
border: 1px solid #fff;
background-color: #357a32;
.message-app .contact-status.online .icon {
color: #357a32;
}
.message-app .message p {
margin: 0;

View File

@ -31565,14 +31565,10 @@ a.ygtvspacer:hover {
.message-app .contact-status {
position: absolute;
left: 39px;
top: 39px;
width: 10px;
height: 10px;
border-radius: 50%;
top: 34px;
}
.message-app .contact-status.online {
border: 1px solid #fff;
background-color: #357a32;
.message-app .contact-status.online .icon {
color: #357a32;
}
.message-app .message p {
margin: 0;