Skip to content

Design-system violations on master: 15 hard-coded radii, 2 unstyled native selects, missing page inset #28

Closed

Description

@superman2003

Summary

controlStyles.test.tsx and SettingsContent.styles.test.ts encode the design
system from DESIGN.md / frontend/CLAUDE.md. master violates them in three
ways.

1. Fifteen hard-coded radii

The rule allows only var(--radius), a pill (a length ≥ 900), or a circle
(50%) — derived values like calc(var(--radius) - 4px) are violations too:

src/components/onboarding/firstRunExperience.css:  8px, 12px, 2px
src/components/tasks/follow-up/ComposerAtReferenceMenu.tsx:  rounded-[14px]
src/features/workflow/workflowStudio.css:  6px
src/styles/conversation/conv-tools.css:  10px, 6px, calc(var(--radius) - 4px)
src/styles/legacy/index.css:  4px, 6px, 1px, 0.75rem,
                              calc(var(--radius) - 2px), calc(var(--radius) - 6px),
                              --xy-node-border-radius: 0.75rem

Note rounded-[14px] is exactly equivalent to rounded-lg, since every
Tailwind radius step maps to var(--radius) in tailwind.legacy.config.js —
it just bypasses the token.

2. Two native selects missing the raised material

AgentModelProviderManager.tsx — the Grok API backend select and the custom
provider protocol select both omit raised-control, so they render as bare
platform selects next to correctly-styled controls.

3. Plugin catalog page has no bottom inset

.settings-page .product-plugins-page uses padding: 0, while
.settings-page .settings-content uses padding: 0 0 1.5rem. The catalog
content therefore sits flush against the bottom edge, unlike every other
settings page.

(The .product-plugin-list background is a separate matter — two tests
disagree about it, see #26.)

Reproduce

cd frontend && pnpm exec vitest run src/components/ui/controlStyles.test.tsx src/pages/settings/SettingsContent.styles.test.ts

Fixed in #20. Related: #21

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions