-
Notifications
You must be signed in to change notification settings - Fork 1.3k
refactor: enhance modal component structure and styling #6337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🚀 Preview for commit 00a8240 at: https://67ddbf4b017ffe286b34e41d--layer5.netlify.app |
🚀 Preview for commit 97afb04 at: https://67e03a9684018c4a5a759f22--layer5.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Souradip121
please fix failing Eslist checks
https://github.com/layer5io/layer5/actions/runs/14020899270/job/39252725942?pr=6337
Also add it to agenda items for weekly websites meeting [Monday, 24th March | 5:30 PM IST]
meeting minutes.
I am facing issues, I have ran using GATSBY_CPU_COUNT=2 make site and over github codespaces with 16GB RAM, with details as follows I really want to contribute, anyone who can help kindly help I have read both blogs |
🚀 Preview for commit 3f70933 at: https://67e1c3f417b1b30e64351e3a--layer5.netlify.app |
I have updated the PR @vishalvivekm you can check |
🚀 Preview for commit eeb4c0c at: https://67e5584754c6b33a415c1750--layer5.netlify.app |
@Souradip121 adding it as an agenda item to the meeting minutes. |
🚀 Preview for commit afdca78 at: https://67ea6050f55cc03954f740b8--layer5.netlify.app |
<thead> | ||
<tr> | ||
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Prop</th> | ||
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Type</th> | ||
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Default</th> | ||
<th style={{ textAlign: "left", padding: "8px 12px", borderBottom: "2px solid #ddd" }}>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>open</code></td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>boolean</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>false</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Controls the visibility of the modal</td> | ||
</tr> | ||
<tr> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>closeModal</code></td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>function</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>required</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Callback function triggered when the modal is closed</td> | ||
</tr> | ||
<tr> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>title</code></td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>string</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>""</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Text displayed in the modal header</td> | ||
</tr> | ||
<tr> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>children</code></td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>node</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>required</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>Content to be rendered inside the modal</td> | ||
</tr> | ||
<tr> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}><code>disableBackdropClick</code></td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>boolean</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>false</td> | ||
<td style={{ padding: "8px 12px", borderBottom: "1px solid #ddd" }}>If true, clicking the backdrop will not close the modal</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, if we'd be better getting rid of these many repeated inline sytles @Souradip121, thoughts ?
</a> | ||
<div className="showcase"> | ||
<div className="table-responsive"> | ||
<table style={{ width: "100%", borderCollapse: "collapse", marginBottom: "20px" }}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here and at any number of places in the changes @Souradip121
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many inline styles
🚀 Preview for commit d17d351 at: https://67eb9074054f9b7bf013f76d--layer5.netlify.app |
Signed-off-by: l5io <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: GARY121github <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Lee Calcote <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: l5io <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: vr-varad <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Aditya Raj <[email protected]> This reverts commit 3ea772a. Removed Extra = Appearing Before Email on Lee Calcote’s Bio Page Signed-off-by: Aditya Raj <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: vr-varad <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
This reverts commit 439e517. Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: gourav-k-shaw <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: GitHub <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Rian Cteulp <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Aditya Raj <[email protected]> fix: run eslint Signed-off-by: Aditya Raj <[email protected]> Remove unnecessary files Signed-off-by: Aditya Raj <[email protected]> Updated my blog as everyone suggested Signed-off-by: Aditya Raj <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Aditya Raj <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Vivek Vishal <[email protected]> Signed-off-by: Souradip Pal <[email protected]>
Signed-off-by: Souradip Pal <[email protected]>
Description
This PR fixes #6292
Notes for Reviewers


Signed commits