Skip to content

Conversation

@tylersticka
Copy link
Member

@tylersticka tylersticka commented Jul 12, 2021

Overview

This PR adds our usual default avatar asset. This will be leveraged by our WordPress theme along with our color tokens to dynamically generate fallback avatars where necessary. In the future, we could expand on this with different foreground images, too, but I didn't want to get too much further in the weeds on this.

I was originally going to place this in the "Design ▸ Brand" stories alongside "Logo," until I realized it was really more of a fallback image. Along the way I ended up reorganizing and cleaning up some of those stories.

Screenshots

Screen Shot 2021-07-12 at 11 11 55 AM

Testing

On the deploy preview, confirm that there are no regressions in design stories.


@changeset-bot
Copy link

changeset-bot bot commented Jul 12, 2021

🦋 Changeset detected

Latest commit: 52c0232

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

// the `.svg.twig` file causes linting errors (since they are not tracked).
// Therefore, we must track a twig file to satisfy CI.
import brandLogo from './demo/logo.twig';
import logoSrc from '../assets/brand/logo.svg';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than maintain a demo file just to display the image, I thought it made more sense to import the image source and display it via an img element in the story.

Comment on lines -11 to -12
Cloud Four logo in SVG format. The logo fill color can be modified via the CSS
`color` property.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this text because it isn't accurate. It describes behavior of our Icon component, but there's nothing about the SVG asset on its own that inherits the color property.


{% embed '@cloudfour/objects/deck/deck.twig' %}
{% embed '@cloudfour/objects/deck/deck.twig' with {
class: 'o-deck--2-column@l'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class was previously specified via the story in args, but I thought that was confusing. Moving it here means there's only one file to edit for this demo.

@tylersticka tylersticka marked this pull request as ready for review July 12, 2021 18:27
@tylersticka tylersticka requested review from a team July 12, 2021 18:27
Copy link
Contributor

@Paul-Hebert Paul-Hebert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

This will be leveraged by our WordPress theme along with our color tokens to dynamically generate fallback avatars where necessary

❤️

@tylersticka tylersticka merged commit 59c9c13 into v-next Jul 12, 2021
@tylersticka tylersticka deleted the feature/asset-avatar-cloud branch July 12, 2021 18:42
@github-actions github-actions bot mentioned this pull request Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default avatar assets

3 participants