-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(buttons): make buttons selectors more specific
BREAKING CHANGE: Selectors for radio buttons related directives were changed and now both label and input require ng-bootstrap specific attributes as selectors. Before: ``` <div [(ngModel)]="model" ngbRadioGroup> <label class="btn"> <input type="radio" name="radio" [value]="values[0]"/> {{ values[0] }} </label> <label class="btn"> <input type="radio" name="radio" [value]="values[1]"/> {{ values[1] }} </label> </div> ``` After: ``` <div [(ngModel)]="model" ngbRadioGroup> <label ngbButtonLabel> <input ngbButton type="radio" name="radio" [value]="values[0]"/> {{ values[0] }} </label> <label ngbButtonLabel> <input ngbButton type="radio" name="radio" [value]="values[1]"/> {{ values[1] }} </label> </div> ``` Notice new `ngbButtonLabel` and `ngbButton` attributes that act as new selectors. Fixes #1125 Closes #1678
- Loading branch information
1 parent
55a91cb
commit f9bc76e
Showing
5 changed files
with
58 additions
and
194 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
demo/src/app/components/buttons/demos/radio-reactive/buttons-radio-reactive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
demo/src/app/components/buttons/demos/radio/buttons-radio.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.