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

Refactor bricks #39

Merged
merged 18 commits into from
Apr 10, 2017
Merged

Refactor bricks #39

merged 18 commits into from
Apr 10, 2017

Conversation

noslouch
Copy link
Contributor

Refactors nypr-brick-layout to expose a few levels of contextual components, which should make it easier for upstream apps to arbitrarily replace and re order parts of the layout.

One thing worth noting is that this renames nypr-brick-image-row to nypr-brick-row-blowout, so it has a naming that's more consistent with the convention we've set up.

export default Ember.Component.extend({
layout,
classNames: ['row__col'],
classNameBindings: ['flipped']
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like there may be a small attribute name inconsistency between flip vs. flipped - on this component, if you pass flipped=true it would get flipped, but down on nypr-brick-row-blowout.hbs (https://github.com/nypublicradio/nypr-ui/pull/39/files#diff-6141847a1a5efc27761d45f7bd66729fR9), it checks for flip=true.

I think if this line was written as classNameBindings: ['flip:flipped'] they would both simply require flip=true

@noslouch noslouch merged commit beaaf6f into nypr-card-refactors Apr 10, 2017
@noslouch noslouch deleted the refactor-bricks branch April 10, 2017 17:08
@noslouch noslouch restored the refactor-bricks branch April 10, 2017 19:56
@noslouch noslouch deleted the refactor-bricks branch April 21, 2017 15:59
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.

2 participants