Skip to content

Commit

Permalink
fix: safari action button color fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 16, 2020
1 parent fc985e7 commit b5e76dc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ui/components/src/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const ActionColors = ({
}) => ({
backgroundColor: theme.colors?.['action'],
color: disabled ? '#ddd' : 'background',
//safari fix:
'-webkit-text-fill-color': 'initial',
cursor: disabled ? 'not-allowed' : undefined,
px: 2,
py: 1,
Expand Down Expand Up @@ -81,25 +83,24 @@ export const ActionBar: FunctionComponent<ActionBarProps> = ({

return (
<div
css={{
sx={{
position: 'relative',
}}
>
<Flex
css={{
sx={{
position: 'absolute',
width: '100%',
}}
>
<div
style={{
display: 'flex',
<Flex
sx={{
flexDirection: 'row-reverse',
marginLeft: 'auto',
}}
>
{items}
</div>
</Flex>
</Flex>
</div>
);
Expand Down

0 comments on commit b5e76dc

Please sign in to comment.