feat(react-cap-theme): add react-spinbutton component#658
Draft
pixel-perfectionist wants to merge 2 commits into
Draft
feat(react-cap-theme): add react-spinbutton component#658pixel-perfectionist wants to merge 2 commits into
pixel-perfectionist wants to merge 2 commits into
Conversation
Add a CAP-themed SpinButton style hook layering CAP deltas on the Fluent base state: pill radius on the `outline` appearance (root and `::before` border), accessible stroke on all four borders (Fluent base only makes the bottom accessible), CAP field heights (36px medium / 28px small), and removal of the Fluent animated focus underline (`::after`) on `outline` only — other appearances keep the base focus underline. Registered via CAP_STYLE_HOOKS.useSpinButtonStyles_unstable, mirroring the react-input / react-search pattern. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
a6101de to
0eba508
Compare
Default, Appearance, Size, and Disabled stories adapted from the Fluent react-spinbutton examples. Rendered under CAP_STYLE_HOOKS via the storybook decorator to visually verify the CAP outline overrides.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
react-spinbuttoncomponent toreact-cap-theme(CAP theme style overrides for SpinButton).Changes
SpinButton.types.ts— component typesuseSpinButtonStyles.styles.ts— CAP theme style hook overridesindex.ts— exportsDraft for review.