Skip to content

Commit

Permalink
fix(compat): add camelCase selectors to tab label wrapper (#5955)
Browse files Browse the repository at this point in the history
* fix(compat): add camelCase selectors to tab label wrapper

* remove internally used dash-case

* remove uses of dash-case
  • Loading branch information
andrewseguin committed Jul 27, 2017
1 parent 2bf6b57 commit a7e75da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/tabs/tab-group.html
Expand Up @@ -3,7 +3,7 @@
[disableRipple]="disableRipple"
(indexFocused)="_focusChanged($event)"
(selectFocusedIndex)="selectedIndex = $event">
<div class="mat-tab-label" role="tab" md-tab-label-wrapper md-ripple
<div class="mat-tab-label" role="tab" mdTabLabelWrapper md-ripple
*ngFor="let tab of _tabs; let i = index"
[id]="_getTabLabelId(i)"
[tabIndex]="selectedIndex == i ? 0 : -1"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tabs/tab-header.spec.ts
Expand Up @@ -277,7 +277,7 @@ interface Tab {
<md-tab-header [selectedIndex]="selectedIndex" [disableRipple]="disableRipple"
(indexFocused)="focusedIndex = $event"
(selectFocusedIndex)="selectedIndex = $event">
<div md-tab-label-wrapper style="min-width: 30px; width: 30px"
<div mdTabLabelWrapper style="min-width: 30px; width: 30px"
*ngFor="let tab of tabs; let i = index"
[disabled]="!!tab.disabled"
(click)="selectedIndex = i">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/tabs/tab-label-wrapper.ts
Expand Up @@ -19,7 +19,7 @@ export const _MdTabLabelWrapperMixinBase = mixinDisabled(MdTabLabelWrapperBase);
* @docs-private
*/
@Directive({
selector: '[md-tab-label-wrapper], [mat-tab-label-wrapper]',
selector: '[mdTabLabelWrapper], [matTabLabelWrapper]',
inputs: ['disabled'],
host: {
'[class.mat-tab-disabled]': 'disabled'
Expand Down

0 comments on commit a7e75da

Please sign in to comment.