Tweak rendering of icons for a11y (#31358)
* Tweak rendering of icons in legacy video feed Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove unused classes Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in face pile Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in overflow tile Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in room search view Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in top unread messages bar Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in space basic settings Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in thread summary tile Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in legacy room tile Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in incoming call toast Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in labs jump to date Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in field validation Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in mini avatar uploader Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in info tooltip Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak rendering of icons in network dropdown Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -16,36 +16,17 @@ Please see LICENSE files in the repository root for full details.
|
||||
margin-top: 24px;
|
||||
|
||||
.mx_SpaceBasicSettings_avatar {
|
||||
position: relative;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
background-color: $tertiary-content;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
img.mx_SpaceBasicSettings_avatar {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
object-fit: cover;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
/* only show it when the button is a div and not an img (has avatar) */
|
||||
div.mx_SpaceBasicSettings_avatar {
|
||||
cursor: pointer;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #ffffff; /* white icon fill */
|
||||
mask-repeat: no-repeat;
|
||||
mask-position: center;
|
||||
mask-size: 20px;
|
||||
mask-image: url("@vector-im/compound-design-tokens/icons/take-photo-solid.svg");
|
||||
svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
padding: 30px;
|
||||
color: #ffffff; /* white icon fill */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user