Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 36 accessibility violation(s) found — 2 critical, 34 serious. Button pattern - 1 issue(s)
ChatComposer - 1 issue(s)
ChatComposerInput - 1 issue(s)
ChatReasoning - 1 issue(s)
ChatToolCalls - 1 issue(s)
Checkbox pattern - 1 issue(s)
CheckboxList - 1 issue(s)
ClickableCard - 1 issue(s)
CodeEditor - 1 issue(s)
CodeEditorPerf - 1 issue(s)
CodeEditorTheme - 1 issue(s)
CodeTheme - 1 issue(s)
DateRangeInput - 1 issue(s)
FileInput - 1 issue(s)
GridMasonry - 1 issue(s)
Heading - 1 issue(s)
Icon - 1 issue(s)
LogStream - 1 issue(s)
MediaTheme Auto - 1 issue(s)
PowerSearch - 1 issue(s)
ProgressBar - 1 issue(s)
Radio group pattern - 1 issue(s)
RadioList - 1 issue(s)
RichTextEditor - 2 issue(s)
SelectableCard - 1 issue(s)
Stepper - 1 issue(s)
TableGroupedRows - 1 issue(s)
TableTree - 1 issue(s)
Text - 1 issue(s)
Theme - 1 issue(s)
PopArt - 1 issue(s)
Thumbnail - 1 issue(s)
Timestamp - 1 issue(s)
Token - 1 issue(s)
Tokenizer - 1 issue(s)
Visual RegressionStatus: No visual change across 2 compared shot(s). Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
## User impact Dialog headers with labelled `endContent` actions no longer pull those controls into the close button's negative block margin. The actions stay within the header padding while the close control keeps its optical edge alignment. ## Visual authority - [x] Correction follows the current `DialogHeader` anatomy: `endContent` and the close control are separate slots. - [ ] New visual direction settled by an owner-approved current specification. ## Before and after Measured in Chromium at a fixed 900×600 viewport: | State | Before | After | | --- | --- | --- | | Title + actions | Title, actions, and close share the same centre line | Unchanged | | Subtitle + actions | Actions are lifted 8.1px to the title's first line | Actions centre on the title+subtitle block; close stays on the title line | The added Storybook stories make both states directly reproducible. ## State matrix - Title + close: unchanged compact header. - Title + labelled actions + close: all controls share one centre line. - Title + subtitle + close: close remains aligned with the title line. - Title + subtitle + labelled actions + close: actions centre on the title block; close remains aligned with the title line. - Logical `marginInlineEnd` preserves the close-button compensation in LTR and RTL. ## Scope - [x] Appearance is the primary intent. - [x] Behavior, API, interaction model, and unrelated layout changes were removed or split. - [x] The evidence shows the changed pixels actively running, not only source or computed styles. - [x] Public text and artifacts contain no internal Meta context. ## Testing - `pnpm exec vitest run packages/core/src/Dialog/DialogHeader.test.tsx` — 19/19 passed - strict ESLint on the three changed TypeScript files — passed - `pnpm -F @astryxdesign/core build` — passed - `pnpm build` — passed - `pnpm storybook:build` — passed - Chromium measurement of both added Storybook states — passed The complete `pnpm test` suite could not run faithfully in the transferred validation checkout because its docsite fixtures and VCS metadata were intentionally omitted; CI should run the complete repository suite.
|
Can you give an example of what visual you're trying to accomplish and why? From trying it before having end contents separate end up with buttons next to the close button appearing visually misaligned. |
@cixzhang The issue I am trying to fix is: when there are buttons in the header, they are out of the padding and too close to the edges: cc @athz Screenshots before and after the fix:
No change without buttons in the header:
Screenshots from Astryx Storybook (after fix):
https://facebook.github.io/astryx/pr/6368/?path=/story/core-dialog--with-subtitle-and-header-actions
|
|
AI review status for this pull request.
|
|
To recap- there are 2 layout logic variants to account for: 1/ For the modal with subtitle variant - we should have the close button be vertically centered with respect to the action buttons. The entire end content slot should be top aligned with respect to the start content on the left.
2/ For the modal WITHOUT subtitle variant (i.e. only title exists)- the end content slot (with action buttons and close button) should be center aligned with respect to the modal title. Design ask here is to ensure we account for these 2 variants @ksying , @cixzhang |












User impact
Dialog headers with labelled
endContentactions no longer pull those controls into the close button's negative block margin. The actions stay within the header padding while the close control keeps its optical edge alignment.Visual authority
DialogHeaderanatomy:endContentand the close control are separate slots.Before and after
Measured in Chromium at a fixed 900×600 viewport:
The added Storybook stories make both states directly reproducible.
State matrix
marginInlineEndpreserves the close-button compensation in LTR and RTL.Scope
Testing
pnpm exec vitest run packages/core/src/Dialog/DialogHeader.test.tsx— 19/19 passedpnpm -F @astryxdesign/core build— passedpnpm build— passedpnpm storybook:build— passedThe complete
pnpm testsuite could not run faithfully in the transferred validation checkout because its docsite fixtures and VCS metadata were intentionally omitted; CI should run the complete repository suite.