-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
feat(chips): Add removal functionality/styling. #4912
Merged
Merged
Commits on Jul 12, 2017
-
feat(chips): Add remove functionality/styling.
Add events, styling and keyboard controls to allow removable chips. - Add basic styling for a user-provided remove icon. - Add keyboard controls for backspace/delete. - Add `(remove)` event which is emitted when the remove icon or one of the delete keys is pressed. - Add `md-chip-remove` directive which can be applied to `<md-icon>` (or others) to inform the chip of the remove request. Add new directive `mdChipInput` for controlling: - `(chipAdded)` - Event fired when a chip should be added. - `[separatorKeys]` - The list of keycodes that will fire the `(chipAdded)` event. - `[addOnBlur]` - Whether or not to fire the `(chipAdded)` event when the input is blurred. Additionally, fix some issues with dark theme and add styling/support for usage inside the `md-input-container` and add styling for focused chips. BREAKING CHANGE - The `selectable` property of the `md-chip-list` has now been moved to `md-chip` to maintain consistency with the new `removable` option. If you used the following code, ```html <md-chip-list [selectable]="selectable"> <md-chip>My Chip</md-chip> </md-chip-list> ``` you should switch it to ```html <md-chip-list> <md-chip [selectable]="selectable">My Chip</md-chip> </md-chip-list> ``` References angular#120. Closes angular#3143. Hat tip to @willshowell for suggestion to use secondary-text for focus color :-)
Configuration menu - View commit details
-
Copy full SHA for de0ec65 - Browse repository at this point
Copy the full SHA de0ec65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a586de - Browse repository at this point
Copy the full SHA 4a586deView commit details -
Configuration menu - View commit details
-
Copy full SHA for bceeaee - Browse repository at this point
Copy the full SHA bceeaeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9afafb - Browse repository at this point
Copy the full SHA a9afafbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6846f3a - Browse repository at this point
Copy the full SHA 6846f3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ff95fbb - Browse repository at this point
Copy the full SHA ff95fbbView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa248c2 - Browse repository at this point
Copy the full SHA fa248c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ef5a0c - Browse repository at this point
Copy the full SHA 8ef5a0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0fd32a9 - Browse repository at this point
Copy the full SHA 0fd32a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f188183 - Browse repository at this point
Copy the full SHA f188183View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8143e18 - Browse repository at this point
Copy the full SHA 8143e18View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.