Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(typography): add Paragraph component #724

Merged
merged 5 commits into from
Apr 21, 2020
Merged

Conversation

jzempel
Copy link
Member

@jzempel jzempel commented Apr 20, 2020

Description

Adds a new <Paragraph> component to the @zendeskgarden/react-typography package. This covers opinionated Garden usage for the HTML <p> element.

Detail

Demo pre-published for review: https://suspicious-noether-1ad97b.netlify.app/typography/#paragraph

Checklist

  • πŸ‘Œ design updates are Garden Designer approved (add the
    designer as a reviewer)
  • 🌐 Styleguidist demo is up-to-date (yarn start)
  • ⬅️ renders as expected with reversed (RTL) direction
  • β™Ώ analyzed via axe and evaluated using VoiceOver
  • πŸ’‚β€β™‚οΈ includes new unit tests
  • πŸ“ tested in Chrome, Firefox, Safari, Edge, and IE11

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 97.919% when pulling 3190884 on jzempel/add-paragraph into 40305b5 on master.

Comment on lines +25 to +27
& + & {
margin-top: ${props => props.theme.lineHeights[props.size!]};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This selector feels like application-specific logic to me. We don't affect margin in other components, shouldn't that be up to the consuming application?

Copy link
Member Author

Choose a reason for hiding this comment

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

@Austin94 stylistically, this is the primary purpose of this component – to establish spacing between sibling paragraphs.

Copy link

@steue steue left a comment

Choose a reason for hiding this comment

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

πŸŽ‰ πŸ‘ so good. so so good.

@jzempel jzempel merged commit 348329c into master Apr 21, 2020
@jzempel jzempel deleted the jzempel/add-paragraph branch April 21, 2020 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

5 participants