Skip to content

Commit

Permalink
Using tokens to define responsive width
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Mar 21, 2019
1 parent 01af34c commit 1177f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion react/components/LoginAsCustomer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const LoginAsCustomer = (props: Props) => {
)

return (
<div className={`${styles.login} ${mobile && 'w-50'}`}>
<div className={`${styles.login} w-50 flex flex-row-reverse-ns flex-row-s`}>
<Popover
arrowClasses="bg-base--inverted"
renderHeader={handleHeaderRendering}
Expand Down
4 changes: 2 additions & 2 deletions react/components/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const Popover = (props: Props) => {

const boxClasses = classnames(
styles.popoverBox,
'absolute top-2 z-max bb b--muted-3',
'absolute-ns top-2 z-max bb b--muted-3 fixed-s',
isBoxOpen ? 'flex' : 'dn',
{
'fixed left-0 right-0': mobile,
'left-0 right-0': mobile,
}
)

Expand Down

0 comments on commit 1177f80

Please sign in to comment.