Skip to content

Commit

Permalink
fix(vwc-side-drawer): handle scrim a11y violation
Browse files Browse the repository at this point in the history
  • Loading branch information
yinonov committed Aug 17, 2021
1 parent 9548eb8 commit cea3e22
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions components/side-drawer/src/vwc-side-drawer-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,11 @@ export class VWCSideDrawerBase extends LitElement {

private renderScrim(): TemplateResult {
return html`
<div
class="vvd-side-drawer--scrim ${this.absolute
? 'vvd-side-drawer--absolute'
: ''}"
@click="${this.#handleScrimClick}"
@onKeydown="${this.#handleScrimClick}"
></div>`;
<div
class="vvd-side-drawer--scrim ${this.absolute ? 'vvd-side-drawer--absolute' : ''}"
@click="${this.#handleScrimClick}"
@keydown="${this.#handleScrimClick}"
></div>`;
}

#handleScrimClick(): void {
Expand Down

0 comments on commit cea3e22

Please sign in to comment.