Skip to content

Commit

Permalink
docs: align JSDoc annotation for TabindexMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Nov 2, 2021
1 parent f695136 commit 99c0d7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions packages/component-base/src/tabindex-mixin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import { DisabledMixinClass } from './disabled-mixin.js';
/**
* A mixin to toggle the `tabindex` attribute.
*
* The attribute is set whenever the user activates the element by a pointer
* or presses an activation key on the element from the keyboard.
* By default, the attribute is set to 0 that makes the element focusable.
*
* The attribute is removed as soon as the element is deactivated
* by the pointer or by releasing the activation key.
* The attribute is set to -1 whenever the user disables the element
* and restored with the last known value once the element is enabled.
*/
export declare const TabindexMixin: <T extends Constructor<HTMLElement>>(
base: T
Expand Down
2 changes: 1 addition & 1 deletion packages/component-base/src/tabindex-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { DisabledMixin } from './disabled-mixin.js';

/**
* A mixin to provide the `tabindex` attribute.
* A mixin to toggle the `tabindex` attribute.
*
* By default, the attribute is set to 0 that makes the element focusable.
*
Expand Down

0 comments on commit 99c0d7e

Please sign in to comment.