-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgt-person: fix avatar scaling issue (#2071)
- added story to demonstrate - fixes: #2070
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,6 +298,10 @@ export const moreExamples = () => html` | |
--avatar-size: 60px; | ||
--avatar-border-radius: 10% 35%; | ||
} | ||
.person-with-avatar-border { | ||
--avatar-border: 2px solid black; | ||
} | ||
</style> | ||
<div class="example"> | ||
|
@@ -341,6 +345,11 @@ export const moreExamples = () => html` | |
<mgt-person person-query="me" view="twoLines"></mgt-person> | ||
</div> | ||
<div class="example"> | ||
<div>Avatar with border (see css tab for style)</div> | ||
<mgt-person class="person-with-avatar-border" person-query="me" avatar-size="large" view="oneline"></mgt-person> | ||
</div> | ||
<div class="example"> | ||
<div>Style initials (see css tab for style)</div> | ||
<mgt-person class="person-initials" person-query="[email protected]" view="oneline"></mgt-person> | ||
|