-
Notifications
You must be signed in to change notification settings - Fork 0
feat(configurator): Misc → coherent "System" panel (follow-up) #702
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -57,8 +57,24 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="p-4 space-y-6"> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- Touch target moved to the Accessibility panel (WCAG 2.5.5 control; now | ||||||||||||||||||||||||||||||||||||||||||||
| classifies there so badge/Reset match where it's edited). --> | ||||||||||||||||||||||||||||||||||||||||||||
| <!-- Touch target moved to the Accessibility panel; focus ring moved to | ||||||||||||||||||||||||||||||||||||||||||||
| Accessibility; both now classify there so badge/Reset match. --> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- Overview of the low-level system areas this panel groups. --> | ||||||||||||||||||||||||||||||||||||||||||||
| <div class="rounded-lg bg-black/3 dark:bg-white/3 border border-black/6 dark:border-white/6 p-3"> | ||||||||||||||||||||||||||||||||||||||||||||
| <p class="text-[10px] text-slate-500 leading-relaxed"> | ||||||||||||||||||||||||||||||||||||||||||||
| Low-level system tokens, grouped by area: | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="font-semibold text-slate-600 dark:text-slate-400">Layering</span>, | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="font-semibold text-slate-600 dark:text-slate-400">Text & selection</span>, | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="font-semibold text-slate-600 dark:text-slate-400">Sizing</span> & | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="font-semibold text-slate-600 dark:text-slate-400">Icons</span>, | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="font-semibold text-slate-600 dark:text-slate-400">Media</span>, and | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="font-semibold text-slate-600 dark:text-slate-400">device / forms</span>. | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+63
to
+72
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Keep the System overview aligned with the section headers. The overview omits the Proposed fix Low-level system tokens, grouped by area:
<span class="font-semibold text-slate-600 dark:text-slate-400">Layering</span>,
<span class="font-semibold text-slate-600 dark:text-slate-400">Text & selection</span>,
- <span class="font-semibold text-slate-600 dark:text-slate-400">Sizing</span> &
- <span class="font-semibold text-slate-600 dark:text-slate-400">Icons</span>,
+ <span class="font-semibold text-slate-600 dark:text-slate-400">Sizing</span>,
+ <span class="font-semibold text-slate-600 dark:text-slate-400">Links & caret</span>,
+ <span class="font-semibold text-slate-600 dark:text-slate-400">Icons</span>,
<span class="font-semibold text-slate-600 dark:text-slate-400">Media</span>, and
- <span class="font-semibold text-slate-600 dark:text-slate-400">device / forms</span>.
+ <span class="font-semibold text-slate-600 dark:text-slate-400">Device & forms</span>.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||
| </p> | ||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- LAYERING --> | ||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Layering</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- Z-INDEX --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Z-index layers" bind:open={showZIndex}> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -84,6 +100,8 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="h-px bg-black/6 dark:bg-white/6"></div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Text & selection</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- SELECTION --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Text selection" bind:open={showTextSelection}> | ||||||||||||||||||||||||||||||||||||||||||||
| <div class="space-y-2"> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -161,6 +179,8 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="h-px bg-black/6 dark:bg-white/6"></div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Sizing</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- COMPONENT SIZES --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Component size scale" bind:open={showComponentSizes}> | ||||||||||||||||||||||||||||||||||||||||||||
| <p class="text-[10px] text-slate-400 dark:text-slate-600 leading-relaxed"> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -196,6 +216,8 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="h-px bg-black/6 dark:bg-white/6"></div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Links & caret</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- CARET & LINKS --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Caret & links" bind:open={showCaretLinks}> | ||||||||||||||||||||||||||||||||||||||||||||
| <div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -257,6 +279,8 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="h-px bg-black/6 dark:bg-white/6"></div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Icons</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- ICON SIZES --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Icon sizes" bind:open={showIconSizes}> | ||||||||||||||||||||||||||||||||||||||||||||
| <p class="text-[10px] text-slate-400 dark:text-slate-600 leading-relaxed"> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -290,6 +314,8 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="h-px bg-black/6 dark:bg-white/6"></div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Media</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- OBJECT FIT / POSITION --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Object fit" bind:open={showObjectFit}> | ||||||||||||||||||||||||||||||||||||||||||||
| <p class="text-[9px] text-slate-400 dark:text-slate-600">Default values for <span class="font-mono text-slate-600 dark:text-slate-400">.sf-media</span> images and replaced elements.</p> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -328,6 +354,8 @@ | |||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="h-px bg-black/6 dark:bg-white/6"></div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <div class="text-[9px] font-bold uppercase tracking-widest text-slate-400 dark:text-slate-600">Device & forms</div> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| <!-- SAFE AREA INSETS --> | ||||||||||||||||||||||||||||||||||||||||||||
| <Section title="Safe area insets" bind:open={showSafeArea}> | ||||||||||||||||||||||||||||||||||||||||||||
| <p class="text-[9px] text-slate-400 dark:text-slate-600 leading-relaxed"> | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -387,7 +415,7 @@ | |||||||||||||||||||||||||||||||||||||||||||
| <!-- PREVIEW NOTE --> | ||||||||||||||||||||||||||||||||||||||||||||
| <div class="rounded-lg bg-black/3 dark:bg-white/3 border border-black/6 dark:border-white/6 p-3"> | ||||||||||||||||||||||||||||||||||||||||||||
| <p class="text-[10px] text-slate-500 leading-relaxed"> | ||||||||||||||||||||||||||||||||||||||||||||
| Selection colors, caret, links, focus ring, borders and sizes all render in the | ||||||||||||||||||||||||||||||||||||||||||||
| Selection colors, caret, links, borders and sizes all render in the | ||||||||||||||||||||||||||||||||||||||||||||
| live preview (try the <span class="text-slate-600 dark:text-slate-400 font-semibold">Components</span> template). | ||||||||||||||||||||||||||||||||||||||||||||
| <span class="text-slate-600 dark:text-slate-400 font-semibold">Scroll behavior</span> applies to the page | ||||||||||||||||||||||||||||||||||||||||||||
| itself and can't be shown in the static canvas. | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
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.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Attach aliases to IDs that exist in
NAV.NAVcontainsdepth, but it does not containshadowsoreffects. The"shadow"and"effect"aliases are therefore never used. Searching for"shadow"or"effect"does not return the Depth panel.Proposed fix
const NAV_ALIASES: Record<string, string[]> = { - borders: ["border", "radius", "shape"], shadows: ["shadow", "depth"], - effects: ["effect"], wcag: ["accessibility", "contrast"], + borders: ["border", "radius", "shape"], + depth: ["shadow", "effect"], + wcag: ["accessibility", "contrast"], themes: ["theme", "preset"], setup: ["install", "export"], cheatsheet: ["reference", "classes"], misc: ["system"], };📝 Committable suggestion
🤖 Prompt for AI Agents