Skip to content

Commit

Permalink
feat: add role=modal to <Overlay>
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 19, 2018
1 parent 0ea10f3 commit 875f204
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Overlay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export class Overlay extends Component<IOverlayProps, IOverlayState> {
onElement = (el) => {
const {style} = el;

el.setAttribute('role', 'modal');

style.zIndex = 2147483647; // Max z-index.
style.position = 'fixed';
style.width = '100%';
Expand Down

0 comments on commit 875f204

Please sign in to comment.