Skip to content

Zap#512

Merged
craigcook merged 2 commits intomozilla:masterfrom
stephaniehobson:zap
Oct 29, 2019
Merged

Zap#512
craigcook merged 2 commits intomozilla:masterfrom
stephaniehobson:zap

Conversation

@stephaniehobson
Copy link
Copy Markdown
Contributor

Description

Add zap component.

  • I have documented this change in the design system.
  • I have recorded this change in CHANGELOG.md.

Issue

Fix #511

Testing

This change depends on #510, make sure you're running the latest protocol-assets.

@stephaniehobson stephaniehobson added Review: XS Code review time: 30 mins or less Needs:Review 👋 Ready for Developer Review P1 First level priority - Must have labels Oct 22, 2019
@craigcook craigcook self-assigned this Oct 28, 2019
Copy link
Copy Markdown
Contributor

@craigcook craigcook 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, though I think the selector is missing a strong.

Thinking further, if we're at all concerned about loose matching of attribute selectors, we could make it more explicit with a class like mzp-has-zap and then extend that with the theme classes to tell it which zap to use. But it's still unlikely that someone would have something named foo-mzp-t-zap or mzp-t-zap-42 or mzp-t-zappbrannigan etc, so matching an attribute selectors is probably fine.

I'd like to eventually include more design guidance around when and how to use a zap. We need better design guidelines overall so that doesn't have to be part of this PR right now.

Comment thread src/patterns/atoms/zap/text.hbs Outdated
Comment thread src/patterns/atoms/zap/text.hbs Outdated
Comment thread src/assets/sass/protocol/components/_zap.scss Outdated
Comment thread src/patterns/atoms/zap/text.hbs Outdated
@stephaniehobson
Copy link
Copy Markdown
Contributor Author

Updated.

@craigcook craigcook removed the Needs:Review 👋 Ready for Developer Review label Oct 29, 2019
Copy link
Copy Markdown
Contributor

@craigcook craigcook left a comment

Choose a reason for hiding this comment

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

⚡️ 🌈

@craigcook craigcook merged commit 66955b8 into mozilla:master Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 First level priority - Must have Review: XS Code review time: 30 mins or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Zap component

2 participants