Skip to content

feat(react): improve button, tag, speed-dial, and time-picker components#68

Merged
wangdicoder merged 6 commits intomasterfrom
feat/button-tag-speeddial-timepicker-improvements
Mar 21, 2026
Merged

feat(react): improve button, tag, speed-dial, and time-picker components#68
wangdicoder merged 6 commits intomasterfrom
feat/button-tag-speeddial-timepicker-improvements

Conversation

@wangdicoder
Copy link
Owner

Summary

  • Button: Add hover, focus, and active state styles for success, info, warning, and danger button types by introducing new color tokens and passing them to the button-style mixin
  • Tag: Add success, info, warning, danger status color presets matching button status types, with a new Status demo and updated EN/CN docs
  • SpeedDial: Replace hardcoded $primary-color SCSS variables with theme-aware var(--ty-color-primary) CSS custom properties so the FAB button follows theme changes
  • TimePicker: Introduce a pending selection state — clicking time slots shows a tentative (greyed) highlight without affecting other columns; the input displays in-progress time in lighter color; selections are committed only on OK click
  • Tokens: Add hover and active color tokens for success, info, warning, and danger in both light and dark themes

Release

  • Bump type: minor
  • Affected packages: @tiny-design/react, @tiny-design/tokens

Test plan

  • Verify button success, info, warning, danger types show distinct hover, focus, and active states
  • Verify Tag renders correctly with color="success", "info", "warning", "danger"
  • Verify SpeedDial FAB button color changes when the theme primary color is customized
  • Verify TimePicker: clear the input, open dropdown, click a single column — other columns should not highlight 00
  • Verify TimePicker: selected slots appear greyed until OK is clicked, then the input text becomes solid
  • Verify dark mode renders correct hover/active colors for all affected components
  • Run pnpm test — all tests pass

…tton types

Add missing hover/active color tokens for success, info, warning, and
danger in both light and dark themes, and pass them to the button-style
mixin so these button types now have visible interactive state feedback.
Add status color styles using the global semantic color tokens to match
the button component's status types. Include a Status demo and update
both EN and CN docs.
…dcoded SCSS variables

Replace hardcoded $primary-color references with var(--ty-color-primary)
and related tokens so the FAB button color follows theme changes.
…vior

Introduce a pending state so clicking time slots shows a tentative
(greyed) highlight without affecting other columns. The input displays
the in-progress time in a lighter color. Selections are only committed
when OK is clicked, matching Ant Design's TimePicker behavior.
@wangdicoder wangdicoder merged commit 006b12a into master Mar 21, 2026
1 check passed
@github-actions github-actions bot mentioned this pull request Mar 21, 2026
@wangdicoder wangdicoder deleted the feat/button-tag-speeddial-timepicker-improvements branch March 22, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant