Skip to content

fix(react): migrate SCSS imports to local variables and fix Popup positioning#101

Merged
wangdicoder merged 2 commits intomasterfrom
fix/scss-import-paths-and-popup-positioning
Apr 10, 2026
Merged

fix(react): migrate SCSS imports to local variables and fix Popup positioning#101
wangdicoder merged 2 commits intomasterfrom
fix/scss-import-paths-and-popup-positioning

Conversation

@wangdicoder
Copy link
Copy Markdown
Owner

Summary

  • Migrate all component SCSS imports from @tiny-design/tokens/scss/variables to local ../../style/variables, decoupling component styles from the tokens package SCSS source
  • Slim down @tiny-design/tokens by removing legacy SCSS files (_variables.scss, _constants.scss, _theme.scss, etc.) in favour of the v2 CSS-variable + runtime approach
  • Fix Popup scroll-following by adding useLayoutEffect + Popper.forceUpdate() to keep position in sync after every render

Release

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

Test plan

  • Verify component styles render correctly after SCSS import path migration
  • Open Select/Cascader/DatePicker dropdowns and scroll — popup should follow smoothly with no lag
  • In Theme Studio, change preset via the Select — dropdown should close in place without flying to top-left
  • Run pnpm build to confirm tokens and react packages build successfully
  • Run pnpm test to verify no regressions

🤖 Generated with Claude Code

…itioning

- Move all component SCSS imports from @tiny-design/tokens/scss/variables
  to local ../../style/variables, decoupling component styles from the
  tokens package SCSS source
- Slim down @tiny-design/tokens by removing legacy SCSS files in favour
  of the v2 CSS-variable + runtime approach
- Fix Popup component scroll-following by adding a useLayoutEffect that
  calls Popper forceUpdate after every render, ensuring position stays
  in sync with layout changes
@wangdicoder wangdicoder merged commit ed760d5 into master Apr 10, 2026
1 check passed
@wangdicoder wangdicoder deleted the fix/scss-import-paths-and-popup-positioning branch April 10, 2026 11:30
@github-actions github-actions bot mentioned this pull request Apr 10, 2026
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