Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
refactor: remove tabindex @prop from tipManager (#267)
Browse files Browse the repository at this point in the history
* refactor: remove tabindex @prop
Preserve arrow navigation functionality

* move tabindex to wrapping element.
  • Loading branch information
pr3tori4n authored Sep 23, 2019
1 parent 021912a commit cd8bdd4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/components/calcite-tip-manager/calcite-tip-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ export class CalciteTipManager {
*/
@Prop({ reflect: true }) theme: CalciteTheme;

@Prop({ reflect: true }) tabindex = 0;

// --------------------------------------------------------------------------
//
// Private Properties
Expand Down Expand Up @@ -243,16 +241,18 @@ export class CalciteTipManager {
}
return (
<Host onKeydown={this.tipManagerKeyDownHandler}>
<header class={CSS.header}>
<h2 class={CSS.heading}>{this.groupTitle}</h2>
<calcite-action text={this.textClose} onClick={this.hideTipManager} class={CSS.close}>
<CalciteIcon size="16" path={x16} />
</calcite-action>
</header>
<div class={classnames(CSS.tipContainer, this.direction)} key={this.selectedIndex}>
<slot />
<div tabindex="0">
<header class={CSS.header}>
<h2 class={CSS.heading}>{this.groupTitle}</h2>
<calcite-action text={this.textClose} onClick={this.hideTipManager} class={CSS.close}>
<CalciteIcon size="16" path={x16} />
</calcite-action>
</header>
<div class={classnames(CSS.tipContainer, this.direction)} key={this.selectedIndex}>
<slot />
</div>
{this.renderPagination()}
</div>
{this.renderPagination()}
</Host>
);
}
Expand Down

0 comments on commit cd8bdd4

Please sign in to comment.