From b91964a00a4381ddc50d00e53f1caef4cd9c931f Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 9 Feb 2017 19:33:47 +0100 Subject: [PATCH] fix(checkbox): rename tabindex to tabIndex (#2953) * 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. --- src/lib/checkbox/checkbox.html | 2 +- src/lib/checkbox/checkbox.spec.ts | 2 +- src/lib/checkbox/checkbox.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/checkbox/checkbox.html b/src/lib/checkbox/checkbox.html index 8164aece2057..723c3eef5e55 100644 --- a/src/lib/checkbox/checkbox.html +++ b/src/lib/checkbox/checkbox.html @@ -7,7 +7,7 @@ [checked]="checked" [disabled]="disabled" [name]="name" - [tabIndex]="tabindex" + [tabIndex]="tabIndex" [indeterminate]="indeterminate" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" diff --git a/src/lib/checkbox/checkbox.spec.ts b/src/lib/checkbox/checkbox.spec.ts index 1a325cdb76b9..5133a8df58d5 100644 --- a/src/lib/checkbox/checkbox.spec.ts +++ b/src/lib/checkbox/checkbox.spec.ts @@ -727,7 +727,7 @@ class MultipleCheckboxes { } @Component({ template: ` `, diff --git a/src/lib/checkbox/checkbox.ts b/src/lib/checkbox/checkbox.ts index 818b0fd5e6b0..ba8fe29e96f3 100644 --- a/src/lib/checkbox/checkbox.ts +++ b/src/lib/checkbox/checkbox.ts @@ -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;