Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tulup-conner/c944b464eebc39b77707513f153e2eda to your computer and use it in GitHub Desktop.
Save tulup-conner/c944b464eebc39b77707513f153e2eda to your computer and use it in GitHub Desktop.
Default modal in position:fixed element didn't cover full screen #75
<div className="w-100 h-100">
<div className="min-w-128 bg-red-800">
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
</div>
<div className="fixed top-0 bottom-0 right-12 bg-purple-800">
<Button onClick={() => setOpenModal('pop-up')}>Toggle modal</Button>
<Modal>
<Modal.Header>Terms of Service</Modal.Header>
<Modal.Body className="space-y-6">
<p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
With less than a month to go before the European Union enacts new consumer privacy laws for its
citizens, companies around the world are updating their terms of service agreements to comply.
</p>
<p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
The European Union’s General Data Protection Regulation (G.D.P.R.) goes into effect on May 25 and is
meant to ensure a common set of data rights in the European Union. It requires organizations to
notify users as soon as possible of high-risk data breaches that could personally affect them.
</p>
</Modal.Body>
<Modal.Footer></Modal.Footer>
</Modal>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment