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

Adding new design property. #51

Merged
merged 3 commits into from
Mar 21, 2016
Merged

Conversation

vesper2000
Copy link
Contributor

major

@rox163
Copy link

rox163 commented Mar 21, 2016

Update the README as well?

@vesper2000
Copy link
Contributor Author

Yeah - this should be documented. Will add.

@@ -100,7 +122,15 @@ export default Ember.Component.extend({
* ['small', 'medium', 'large', 'extra-large']
* @type {String}
*/
size: 'medium',
size: '',
Copy link

Choose a reason for hiding this comment

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

It looks like this constitutes a breaking API change and therefore warrants a #MAJOR# version-bump

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just realized this when I updated the readme. Will update to #major#.

Copy link

Choose a reason for hiding this comment

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

Is it really necessary to remove these defaults for size and priority ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When design is present, we don't want priority and size to be specified. If they are present, we will ignore them and print the warning. Since they have a value by default, we would always end up with the warning even if the application did not specify it. So it is a bit cleaner without the default values.

Copy link

Choose a reason for hiding this comment

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

Got it. Well in that case, I guess we need the #MAJOR# bump then because there is existing code which probably relies on the defaults and that code will break with this release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed - I updated that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could potentially have addressed this with internal _priority set to default and external priority setting that value/being checked against the assertion, but this is already merged...so ;)

In the future (once this is in core) - I want multiple approvals on any #major# changes, maybe we can do that will pullapprove

@rox163
Copy link

rox163 commented Mar 21, 2016

👍

Approved with PullApprove

vesper2000 added a commit that referenced this pull request Mar 21, 2016
Adding new `design` property.
@vesper2000 vesper2000 merged commit 7006660 into ciena-attic:master Mar 21, 2016
autofocus=true
on-click=(action 'click')
design='tab'
text='Design Tab'
Copy link
Contributor

Choose a reason for hiding this comment

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

Design: Tab

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.

None yet

4 participants