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

Add openClass and closeClass attributes #221

Merged
merged 6 commits into from
Feb 24, 2017
Merged

Conversation

nlarche
Copy link

@nlarche nlarche commented Feb 24, 2017

Hello Guy,

I tried to do something, tell me If it's good to you and if you want me to do thing in another way
closes #219

regards,

Nicolas

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 74.444% when pulling b370617 on nlarche:master into f515c70 on guylabs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 74.444% when pulling 41940df on nlarche:master into f515c70 on guylabs:master.

Copy link
Owner

@guylabs guylabs left a comment

Choose a reason for hiding this comment

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

Hi @nlarche

first I must say best pull request since the project started! You added documentation, tests and increased the overall coverage! ;) really nice.

I added some comments, mainly formatting issues and documentation changes. Can you please check that all formatting changes are reverted as then you exactly see what changed in functionality/features.

And could you also execute a grunt dist and then update the pull request? Then all the distribution files are also updated.

When you manage to fix these things over the weekend then I can add them to the 0.4.0 release as I want to release this on Monday evening.

Thanks a lot! Great contribution!

Regards

Guy

README.md Outdated
@@ -39,6 +39,7 @@ ion-autocomplete
- [Manage externally](#manage-externally)
- [Selected items](#selected-items)
- [Clear on select](#clear-on-select)
- [Override open and close class ](#open-close-class)
Copy link
Owner

Choose a reason for hiding this comment

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

Can you maybe change it to - [Open and close CSS class ](#open-and-close-css-class)?

README.md Outdated
@@ -560,6 +561,14 @@ This option is to clear the search input when an item is selected. You need to s
<input ion-autocomplete type="text" class="ion-autocomplete" autocomplete="off" ng-model="model" clear-on-select="true" />
```

### Override open and close class
Copy link
Owner

Choose a reason for hiding this comment

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

Please use the following documentation (just some minor changes):

Open and close CSS class

By default two CSS classes are used to display and hide the modal, namely the ion-autocomplete-open and the ion-autocomplete-close CSS class. These are used to show and hide the modal. When you need to override these classes, you can define the following two properties with your CSS class.

<input ion-autocomplete type="text" class="ion-autocomplete" open-class="my-open-class" close-class="my->close-class" />

@@ -5,7 +5,7 @@
bottom: 0;
left: 0;
z-index: 20;
display: none;
/*display: none;*/
Copy link
Owner

Choose a reason for hiding this comment

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

Please delete it right away as commented out code is something you don't need ;).

@@ -21,7 +21,7 @@ angular.module('ion-autocomplete', []).directive('ionAutocomplete', [
selectedItemsLabel: '@',
templateUrl: '@',
itemValueKey: '@',
itemViewValueKey: '@'
itemViewValueKey: '@'
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove the spaces you added at the end here.

@@ -477,7 +483,7 @@ angular.module('ion-autocomplete', []).directive('ionAutocomplete', [
// set the model value of the model
ngModelController.$parsers.push(function (viewValue) {
return ionAutocompleteController.getItemValue(viewValue, ionAutocompleteController.itemValueKey);
});
});
Copy link
Owner

Choose a reason for hiding this comment

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

Please remove the spaces you added at the end here.

@@ -8,47 +8,60 @@
<title>ion-autocomplete end to end test page</title>

<link rel="stylesheet" href="../../bower_components/ionic/css/ionic.css">
<link rel="stylesheet" type="text/css" href="../../src/ion-autocomplete.css"/>
<link rel="stylesheet" type="text/css" href="../../src/ion-autocomplete.css" />
Copy link
Owner

Choose a reason for hiding this comment

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

Please revert the formatting as this adds unneeded changes to the pull request.


<script src="../../bower_components/ionic/js/ionic.bundle.js"></script>
<script src="../../src/ion-autocomplete.js"></script>
<script type="text/javascript">
var app = angular.module('ion-autocomplete-sample', ['ionic', 'ion-autocomplete'])
.controller('IonAutocompleteController', function ($scope) {
Copy link
Owner

Choose a reason for hiding this comment

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

Same here: Please revert the formatting as this adds unneeded changes to the pull request. (for the whole block from line 17 to 42)

<ion-view title="ion-autocomplete sample">
<ion-content>
<form>
<ion-view title="ion-autocomplete sample">
Copy link
Owner

Choose a reason for hiding this comment

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

Please revert the formatting as this adds unneeded changes to the pull request. Please check the rest of the file as there are more formatting changes like this.

@nlarche
Copy link
Author

nlarche commented Feb 24, 2017

I made all changes and push dist files. it should be good.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.9%) to 74.444% when pulling bd63cd9 on nlarche:master into f515c70 on guylabs:master.

@guylabs guylabs self-assigned this Feb 24, 2017
@guylabs guylabs added this to the 0.4.0 milestone Feb 24, 2017
@guylabs guylabs merged commit cd062ac into guylabs:master Feb 24, 2017
@guylabs
Copy link
Owner

guylabs commented Feb 24, 2017

@nlarche Did you run the local e2e tests with protractor? Looks like the master is now failing: https://travis-ci.org/guylabs/ion-autocomplete/builds/204997944 Could you maybe have a look at it and check if you are able to reproduce it locally?

The strange thing is that here in the pull request it said the build was passing and the coverage increased. I am able to have a look at it on Monday evening if you cannot check it.

Thanks and regards,

Guy

@nlarche
Copy link
Author

nlarche commented Feb 24, 2017

@guylabs yes it's weird, I ran all the test in local. I can't check until Monday morning.

@guylabs
Copy link
Owner

guylabs commented Feb 25, 2017

@nlarche I just fixed it as the open/close classes for the e2e tests did not work properly. I changed them an now all the tests work properly. Can you maybe check it on Monday such that I can release 0.4.0 in the evening? That would be great!

Thanks a lot and have a good weekend.

@nlarche
Copy link
Author

nlarche commented Feb 27, 2017

Ok, it looks good to me.

@guylabs
Copy link
Owner

guylabs commented Feb 27, 2017

Hey @nlarche, 0.4.0 is released. Thanks again for your contirbution!

Regards

Guy

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.

Animate open and close modal
3 participants