style: align modal close button across apps
This commit is contained in:
1 parent
ad14f97d90
commit
7a66ed9578
30 files changed
+594
-541
No files matched your search
@@ -73,21 +73,35 @@ export default function ConfirmActionDialog({
|
||||
onClick={onClose}
|
||||
>
|
||||
<div
|
||||
className="card"
|
||||
className="modal-shell"
|
||||
style={{
|
||||
width: "min(100%, 520px)",
|
||||
padding: 0,
|
||||
overflow: "hidden",
|
||||
boxShadow: "0 28px 70px rgba(2, 6, 23, 0.46)",
|
||||
maxWidth: 520,
|
||||
}}
|
||||
onClick={(event) => event.stopPropagation()}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
className="modal-close"
|
||||
aria-label="Close confirmation dialog"
|
||||
>
|
||||
<X size={22} />
|
||||
</button>
|
||||
<div
|
||||
className="card"
|
||||
style={{
|
||||
padding: 0,
|
||||
overflow: "hidden",
|
||||
boxShadow: "0 28px 70px rgba(2, 6, 23, 0.46)",
|
||||
}}
|
||||
>
|
||||
<div style={{ padding: 28, display: "grid", gap: 18 }}>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
gap: 12,
|
||||
paddingRight: 28,
|
||||
}}
|
||||
>
|
||||
<div style={{ display: "grid", gap: 8 }}>
|
||||
@@ -121,19 +135,6 @@ export default function ConfirmActionDialog({
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
onClick={onClose}
|
||||
style={{
|
||||
background: "none",
|
||||
border: "none",
|
||||
cursor: "pointer",
|
||||
color: "var(--text-muted)",
|
||||
alignSelf: "flex-start",
|
||||
}}
|
||||
aria-label="Close confirmation dialog"
|
||||
>
|
||||
<X size={18} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{note ? (
|
||||
@@ -176,6 +177,7 @@ export default function ConfirmActionDialog({
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user