Created
May 2, 2022 05:12
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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