V2. Displacement of elements bug on Safari
See original GitHub issueExpected Behavior
Button should be clickable on the button
Actual Behavior
Button is not clickable on the button (but on displaced location)
URL, screen shot, or Codepen exhibiting the issue
play around in different screen resolution v2.grommet.io/play
/**
* Welcome to the Grommet playground!
* This is the hello world example. There are more examples available
* in the top right header, so feel free to explore all of it.
* Grommet components can be accessed by their direct name, e.g.:
* Box, Button, ...
* Icons are available inside Icons variable: Icons.Add, for example.
*
* About this hello world example:
*
* It simulates a form (no real action). It adds a Header, Body, and Footer.
* The body scrolls independently. Header and Footer are sticky.
* See overflow='auto' in the Box for the Body component.
*
* Don't forget to checkout the Theme playground, where we demonstrate how to
* customize the Grommet theme to match your brand.
*
* Have fun :)
**/
const ConfirmationLayer = ({ onClose }) => (
<Layer position='center' onClickOutside={onClose}>
<Box pad='large' gap='medium'>
<Text>Are you sure?</Text>
<Box direction='row' gap='medium' align='center'>
<Button label='Yes' onClick={onClose} />
<Button label='No' primary={true} onClick={onClose} />
</Box>
<Box direction='row' gap='medium' align='center'>
<Button label='Yes' onClick={onClose} />
<Button label='No' primary={true} onClick={onClose} />
</Box>
<Box direction='row' gap='medium' align='center'>
<Button label='Yes' onClick={onClose} />
<Button label='No' primary={true} onClick={onClose} />
</Box>
<Box direction='row' gap='medium' align='center'>
<Button label='Yes' onClick={onClose} />
<Button label='No' primary={true} onClick={onClose} />
</Box>
<Box direction='row' gap='medium' align='center'>
<Button label='Yes' onClick={onClose} />
<Button label='No' primary={true} onClick={onClose} />
</Box>
<Box direction='row' gap='medium' align='center'>
<Button label='Yes' onClick={onClose} />
<Button label='No' primary={true} onClick={onClose} />
</Box>
</Box>
</Layer>
);
class Body extends React.Component {
constructor() {
this.state = {}
}
render () {
const { layerType } = this.state;
let layer;
if (layerType === 'Confirmation') {
layer = <ConfirmationLayer onClose={() => this.setState({ layerType: undefined })} />;
}
return (
<Box flex={true} pad='medium' overflow='auto'>
<Box margin='small'>
<Button
label={'Confirmation'}
onClick={() => this.setState({
layerType: (layerType === 'Confirmation' ? undefined : 'Confirmation'),
})}
/>
</Box>
{layer}
</Box>
);
}
}
const App = () => (
<Grommet theme={Themes.grommet} full={true}>
<Box fill={true}>
<Body />
</Box>
</Grommet>
);
render(<App />);
Steps to Reproduce
Your Environment
- Grommet version: V2
- Browser Name and version: latest Safari
- Operating System and version (desktop or mobile): desktop
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Safari bug :first-child doesn't update display:block when items ...
This appears to be a problem with display: none and objects removed from the document tree which manifests itself when you use :first-child ......
Read more >Rendering bug and element flickering in Safari 15.4.1
A workaround is that we set "transformation: translateZ(0)" at the lowest level. This stops the flickering of the elements, but the repainting of...
Read more >[Solved]-<input type="submit"> padding bug on Safari mobile?
Padding on input element not working as expected on mobile safari (iphone) ... score:2. I ran into this bug today when my mom...
Read more >A Deep Dive Into The Wonderful World Of SVG Displacement ...
Displacement filtering is an important tool in VFX, and most likely you ... there's another bug in WebKit that leaves any element that...
Read more >7 of the Biggest Mac Annoyances & How to Fix Them | OSXDaily
That is a good example on how a bug has been transported from Mac Os Version to the next. I didn't notice it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not able to reproduce this issue with safari
Version 12.0 (13606.2.11)
.I’m going to close this issue since I believe there is nothing to change on our end with regards to that.
We can reopen if we are able to reproduce it.
let me try to reproduce this on my end