diff --git a/docs/ui/UI_AUDIT.md b/docs/ui/UI_AUDIT.md index d1b407a..5c73f26 100644 --- a/docs/ui/UI_AUDIT.md +++ b/docs/ui/UI_AUDIT.md @@ -76,7 +76,7 @@ So a Button intended as a "card-style action" (e.g. a title above a prompt) will grep -rEn ']*>.*\n[^<]*<' --include='*.tsx' web/src ``` -**Recommendation for design system:** add a documented `` primitive that drops `whitespace-nowrap` and removes fixed height, OR add an `as="card"` variant to ` + {isLocked && (
Pro/Elite Only @@ -338,11 +338,10 @@ export const StrategyWizard: React.FC<{
{(['24/7', 'London + New York', 'Asia only'] as const).map(option => ( -
- + ))} diff --git a/web/src/layout-fixes.css b/web/src/layout-fixes.css index 1ba4360..afe83b6 100644 --- a/web/src/layout-fixes.css +++ b/web/src/layout-fixes.css @@ -494,35 +494,3 @@ overflow-wrap: anywhere; } -/* --------------------------------------------------------------------------- - Section 25 — card-button utility (UI audit Pattern A) - Use on a native + {/* 6. Action */} diff --git a/web/src/views/SimpleView.tsx b/web/src/views/SimpleView.tsx index 5525f42..831dba4 100644 --- a/web/src/views/SimpleView.tsx +++ b/web/src/views/SimpleView.tsx @@ -24,6 +24,7 @@ import { type TriggerMode, } from './tradePlansState'; import { useTradePlansNavigationState } from './useTradePlansNavigationState'; +import { CardButton } from '@bytelyst/ui'; type SimpleHolding = { symbol: string; @@ -1006,14 +1007,13 @@ export function SimpleView() {

-
- - +