Skip to content

Commit

Permalink
Fix overhanging focus ring in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Joel authored and cdata committed Mar 6, 2019
1 parent 7603226 commit c21e328
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/features/loading/status-announcer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,15 @@ export class LoadingStatusAnnouncer extends EventDispatcher {

constructor() {
super();
this.statusElement.setAttribute('role', 'status');
this.statusElement.style.position = 'absolute';
this.statusElement.style.color = 'transparent';
this.statusElement.style.pointerEvents = 'none';
const {statusElement} = this;
const {style} = statusElement;

statusElement.setAttribute('role', 'status');

style.position = 'absolute';
style.color = 'transparent';
style.top = style.left = style.margin = '0';
style.pointerEvents = 'none';
}

/**
Expand Down

0 comments on commit c21e328

Please sign in to comment.