Skip to content

Commit

Permalink
fix(checkbox): rename tabindex to tabIndex (#2953)
Browse files Browse the repository at this point in the history
* Renames the checkbox `tabindex` input to the `tabIndex` input. This is consistent with other API's like for the slide-toggle and also with native inputs.
  • Loading branch information
devversion authored and tinayuangao committed Feb 9, 2017
1 parent 902edd0 commit b91964a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/checkbox/checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[checked]="checked"
[disabled]="disabled"
[name]="name"
[tabIndex]="tabindex"
[tabIndex]="tabIndex"
[indeterminate]="indeterminate"
[attr.aria-label]="ariaLabel"
[attr.aria-labelledby]="ariaLabelledby"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/checkbox/checkbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ class MultipleCheckboxes { }
@Component({
template: `
<md-checkbox
[tabindex]="customTabIndex"
[tabIndex]="customTabIndex"
[disabled]="isDisabled"
[disableRipple]="disableRipple">
</md-checkbox>`,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ export class MdCheckbox implements ControlValueAccessor {
get disabled(): boolean { return this._disabled; }
set disabled(value) { this._disabled = coerceBooleanProperty(value); }

/** @docs-private */
@Input() tabindex: number = 0;
/** Tabindex value that is passed to the underlying input element. */
@Input() tabIndex: number = 0;

/** Name value will be applied to the input element if present */
@Input() name: string = null;
Expand Down

0 comments on commit b91964a

Please sign in to comment.