Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

Splaktar
Copy link
Contributor

@Splaktar Splaktar commented Sep 7, 2018

PR Checklist

Please check that your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added or this is not a bug fix / enhancement
  • Docs have been added, updated, or were not required

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

If a md-input-container has an md-icon that has an ng-if that resolves to false (the icon should be removed), the md-icon-left or md-icon-right class is applied to the md-input-container incorrectly.
This regression was introduced in 1.1.1.

Issue Number:
Fixes #9529
Relates to #9155
Relates to #9151

What is the new behavior?

If a md-input-container has an md-icon that has an ng-if that resolves to false (the icon should be removed), the md-icon-left or md-icon-right class won't be applied to the md-input-container incorrectly.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

This CodePen demonstrates the fix in this PR.

@Splaktar Splaktar added type: bug severity: regression This issue is related to a regression ux: polish P4: minor Minor issues. May not be fixed without community contributions. labels Sep 7, 2018
@Splaktar Splaktar added this to the 1.1.11 milestone Sep 7, 2018
@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Sep 7, 2018
@Splaktar Splaktar force-pushed the fixIconInputContainerNgIf branch from 3d6e515 to f026e4a Compare September 7, 2018 21:17
@Splaktar Splaktar added the pr: merge ready This PR is ready for a caretaker to review label Sep 7, 2018
@Splaktar
Copy link
Contributor Author

Splaktar commented Sep 7, 2018

The only Travis failures here are related to an issue with the AngularJS 1.7.4 release/staging. It's unrelated to AngularJS Material.

@Splaktar Splaktar assigned mmalerba and unassigned andrewseguin Sep 19, 2018
@mmalerba mmalerba merged commit 4493389 into master Sep 23, 2018
@Splaktar Splaktar deleted the fixIconInputContainerNgIf branch September 23, 2018 21:16
nobitagit pushed a commit to nobitagit/material that referenced this pull request Sep 24, 2018
…gular#11437)

<!-- 
Filling out this template is required! Do not delete it when submitting a Pull Request! Without this information, your Pull Request may be auto-closed.
-->
## PR Checklist
Please check that your PR fulfills the following requirements:
- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)
- [x] Tests for the changes have been added or this is not a bug fix / enhancement
- [x] Docs have been added, updated, or were not required

## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x". -->
```
[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:
```

## What is the current behavior?
If a `md-input-container` has an `md-icon` that has an `ng-if` that resolves to false (the icon should be removed), the `md-icon-left` or `md-icon-right` class is applied to the `md-input-container` incorrectly.
This regression was introduced in 1.1.1.
<!-- Please describe the current behavior that you are modifying and link to one or more relevant issues. -->
Issue Number: 
Fixes angular#9529
Relates to angular#9155
Relates to angular#9151

## What is the new behavior?
If a `md-input-container` has an `md-icon` that has an `ng-if` that resolves to false (the icon should be removed), the `md-icon-left` or `md-icon-right` class won't be applied to the `md-input-container` incorrectly.

## Does this PR introduce a breaking change?
```
[ ] Yes
[x] No
```
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
<!-- Note that breaking changes are highly unlikely to get merged to master unless the validation is clear and the use case is critical. -->

## Other information
[This CodePen](https://codepen.io/Splaktar/pen/qMVxZB?editors=1010#0) demonstrates the fix in this PR.
marosoft pushed a commit to marosoft/material that referenced this pull request Nov 11, 2018
…gular#11437)

<!-- 
Filling out this template is required! Do not delete it when submitting a Pull Request! Without this information, your Pull Request may be auto-closed.
-->
## PR Checklist
Please check that your PR fulfills the following requirements:
- [x] The commit message follows [our guidelines](https://github.com/angular/material/blob/master/.github/CONTRIBUTING.md#-commit-message-format)
- [x] Tests for the changes have been added or this is not a bug fix / enhancement
- [x] Docs have been added, updated, or were not required

## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x". -->
```
[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:
```

## What is the current behavior?
If a `md-input-container` has an `md-icon` that has an `ng-if` that resolves to false (the icon should be removed), the `md-icon-left` or `md-icon-right` class is applied to the `md-input-container` incorrectly.
This regression was introduced in 1.1.1.
<!-- Please describe the current behavior that you are modifying and link to one or more relevant issues. -->
Issue Number: 
Fixes angular#9529
Relates to angular#9155
Relates to angular#9151

## What is the new behavior?
If a `md-input-container` has an `md-icon` that has an `ng-if` that resolves to false (the icon should be removed), the `md-icon-left` or `md-icon-right` class won't be applied to the `md-input-container` incorrectly.

## Does this PR introduce a breaking change?
```
[ ] Yes
[x] No
```
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
<!-- Note that breaking changes are highly unlikely to get merged to master unless the validation is clear and the use case is critical. -->

## Other information
[This CodePen](https://codepen.io/Splaktar/pen/qMVxZB?editors=1010#0) demonstrates the fix in this PR.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ P4: minor Minor issues. May not be fixed without community contributions. pr: merge ready This PR is ready for a caretaker to review severity: regression This issue is related to a regression type: bug ux: polish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

input-container: added class md-icon-left when it has md-icon with ng-if false
5 participants