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

Release 1.0.2 #6

Merged
merged 8 commits into from
Jul 27, 2018
Merged

Release 1.0.2 #6

merged 8 commits into from
Jul 27, 2018

Conversation

broccolini
Copy link
Member

@broccolini broccolini commented Jul 20, 2018

Closes #5 and #4

In this pr:

  • fix spacing so that it is an array and not an object
  • add example of how to use primitives

To do

  • update changelog
  • bump version

@broccolini broccolini requested a review from a team July 21, 2018 00:46
CHANGELOG.md Outdated
#### :bug: Bug Fix
* [#3](https://github.com/primer/primer-primitives/pull/6) Fix spacing so to be an array instead of an object. ([@broccolini](https://github.com/broccolini))

#### :house: Internal
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be 📝 Documentation, no?

CHANGELOG.md Outdated
# 1.0.2 (2018-07-20)

#### :bug: Bug Fix
* [#3](https://github.com/primer/primer-primitives/pull/6) Fix spacing so to be an array instead of an object. ([@broccolini](https://github.com/broccolini))
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove "so" here?

Copy link
Contributor

@shawnbot shawnbot left a comment

Choose a reason for hiding this comment

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

Examples look good! Just a couple of things that we might want to tweak in the release notes.


const App = props => (
<ThemeProvider theme={theme}>
<Alert color='green.0' bg='green.2' />
Copy link
Contributor

Choose a reason for hiding this comment

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

Does styled-system do the magic of converting the string green.0 to theme.colors.green[0]? Or is there any extra set-up you need to do to get that to work besides passing the theme file into ThemeProvider?

Copy link
Member Author

Choose a reason for hiding this comment

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

The answer is essentially yes, no extra step. Here is the code if you are curious about the implementation https://github.com/jxnblk/styled-system/blob/master/src/util.js#L22-L23

Copy link
Contributor

Choose a reason for hiding this comment

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

Hah, I found a bug in that code @broccolini: styled-system/styled-system#254 🤓

Copy link
Contributor

@emplums emplums left a comment

Choose a reason for hiding this comment

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

Just left one question but otherwise looks good to me!

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.

Spacing primitives are defined as an object instead of an array
3 participants