Skip to content

Commit

Permalink
refactor: improve use of as const in styles.ts in addon-centered
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanmaisse committed May 17, 2019
1 parent 1fc343e commit 53a6be8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions addons/centered/src/styles.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const styles = {
style: {
position: 'fixed' as const,
position: 'fixed',
top: '0',
left: '0',
bottom: '0',
right: '0',
display: 'flex' as const,
alignItems: 'center' as const,
overflow: 'auto' as const,
display: 'flex',
alignItems: 'center',
overflow: 'auto',
},
innerStyle: {
margin: 'auto' as const,
maxHeight: '100%' as const, // Hack for centering correctly in IE11
overflow: 'auto' as const,
margin: 'auto',
maxHeight: '100%', // Hack for centering correctly in IE11
overflow: 'auto',
},
};
} as const;

export default styles;

0 comments on commit 53a6be8

Please sign in to comment.