Replace dashboard CSS uses of the undefined --space-2xs token with supported spacing values. - swap var(--space-2xs) for var(--space-xs) in confirm dialog, merge advance notice, and PR checks styles - add a dashboard test that scans component stylesheets for undefined --space-2xs references - assert shared token sources continue to omit an intentional --space-2xs definition Files changed: .../app/__tests__/space-token-defined.test.ts | 45 ++++++++++++++++++++++ .../dashboard/app/components/ConfirmDialog.css | 2 +- .../app/components/MergeAdvanceNotice.css | 8 ++-- packages/dashboard/app/components/PrChecksList.css | 2 +- 4 files changed, 51 insertions(+), 6 deletions(-) Fusion-Task-Id: FN-5934 Fusion-Task-Lineage: aa77df19-3f76-4ede-aa42-0396230edde5
56 lines
1.3 KiB
CSS
56 lines
1.3 KiB
CSS
.confirm-dialog {
|
|
width: min(calc(var(--space-xl) * 18), calc(100vw - var(--space-2xl)));
|
|
}
|
|
|
|
.confirm-dialog__body {
|
|
color: var(--text-muted);
|
|
line-height: 1.5;
|
|
padding: 0 var(--space-xl) var(--space-lg);
|
|
white-space: pre-wrap;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.confirm-dialog__checkbox {
|
|
display: grid;
|
|
gap: var(--space-xs);
|
|
margin: 0 var(--space-xl) var(--space-lg);
|
|
}
|
|
|
|
.confirm-dialog__checkbox-description {
|
|
color: var(--text-muted);
|
|
margin-inline-start: var(--space-lg);
|
|
}
|
|
|
|
.confirm-dialog__actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.confirm-dialog-overlay {
|
|
align-items: center;
|
|
padding-top: max(var(--space-md), env(safe-area-inset-top, 0px));
|
|
padding-right: var(--space-sm);
|
|
padding-bottom: max(var(--space-md), env(safe-area-inset-bottom, 0px));
|
|
padding-left: var(--space-sm);
|
|
}
|
|
|
|
.confirm-dialog {
|
|
width: min(100%, calc(var(--space-xl) * 16));
|
|
max-height: calc(100dvh - (var(--space-md) * 2) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
|
|
height: auto;
|
|
border: var(--btn-border-width) solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.confirm-dialog__actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|