docs(ui): canonical Button variant reference + showcase page (PMS-357) #252
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/pms-357-button-variant-doc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Closes AC4 of PMS-357. The audit found the button-colour inconsistency the reviewer flagged is already resolved on main, so this PR only adds the missing reference deliverable.
Audit result (AC1-AC3 already satisfied)
ButtonVariant:Primary(blue,#[default]),Secondary(gray),Danger(red),Ghost(transparent),Link(blue text).Primary. The "white New Company" was a pre-fix state.Primary, zero drift.Secondary, zero drift.This PR (AC4)
dev-docs/button-variants.md- the one correct variant per action (Primary = create/submit, Secondary = Cancel/Filter, Danger = destructive, Ghost = low-emphasis inline, Link = hyperlink-style), plus sizes, states, and review rules.src/pages/button_showcase.rs+ a/dev/buttonsroute (auth-gated) - a live render of every variant/size/state to diff a new screen against in review.No call-site changes (none needed).
Verification
wasm
cargo check,cargo clippy --target wasm32-unknown-unknown --lib -- -D warnings, andcargo fmt --all --checkall pass.#PMS-357