Closed danilo-moreira-brisa closed 5 months ago
The project undertook a significant refactor, transitioning from stitches
to styled-components
for styling across several components, including buttons, tabs, and tab groups. This shift enhances customization and theming capabilities, alongside updates to testing approaches and component structures to align with the new styling methodology.
Files | Summary |
---|---|
src/components/button/button.test.tsx |
Removed jest-styled-components import. |
src/components/tab/... , src/components/tabGroup/... |
Refactored to use styled-components , updated tests, and adjusted component structures. |
TabGroup
component.Tab
component.In the code garden, where stitches once lay,
A rabbit hopped through, on a bright sunny day.
🌼 "Let's use styled-components!" it cheerily said,
As it refactored the tabs, then leaped ahead.
With each line of code, the garden did bloom,
A beautiful sight, far from gloom.
🐰 "Now, let's celebrate," whispered the rabbit,
"For our code is now stylish, as if by magic!"
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
P.S.: Some of these alterations are already on #144.
Summary by CodeRabbit
Tab
andTabGroup
components with more flexible theming and customization options.Tab
andTabGroup
components fromstitches
tostyled-components
for dynamic styling.Tab
component to dynamically adjust styles based on size, direction, and selection state.TabGroup
styling logic for conditional rendering based on alignment.Button
,Tab
, andTabGroup
components to reflect changes in styling and functionality.