Design
Avatars are used to display a picture representing a person, group or project.
Avatars can use SVGs and Data URIs.
Avatars can be a link and they can be displayed in a range of sizes.
Remember that any asymmetry in the image will be obvious in the displayed avatar.
Code
- Avatars require an image with equal width and height.
- Alternative text must always be supplied for the image.
- The image will be resized to match the avatar, so for best results use images matched to their target size; or use an SVG.
- Known issue: IE11 and Edge do not resize raster images smoothly, so some images will look very pixellated in those browsers. Some workarounds are - use an SVG; resize the image file to match display; or use a photo which minimises the effect.
Comparison of a downsampled image (left) and one scaled to fit (right):
Wherever possible, accept a high-resolution file from the user and store resized copies separately from that original.
| Example | Note | Code |
|---|---|---|
|
|
Avatar for a person. Use this variant for any individual's avatar. |
Track ACECLASSIC-38 for progress adding Avatar to Classic templates. |
|
|
Avatar for a group. Use this for teams, sub-teams, etc. |
Track ACECLASSIC-38 for progress adding Avatar to Classic templates. |
|
|
Avatar for a project. Use this for things that a person or group would work on, or do together. |
Track ACECLASSIC-38 for progress adding Avatar to Classic templates. |
|
|
Avatar sizes: xxsmall, xsmall, small, medium, large, xlarge, xxlarge. Example shows an avatar set to xsmall. |
Track ACECLASSIC-38 for progress adding Avatar to Classic templates. |
|
|
Avatars can be a link. |
Track ACECLASSIC-38 for progress adding Avatar to Classic templates. |