Closed danilo-moreira-brisa closed 5 months ago
This update signifies a pivotal shift towards utilizing styled-components
for styling across various components such as Button, Tab, and TabGroup. The modifications span from removing outdated imports and refining test setups to overhauling the styling logic for enhanced theme consistency and component flexibility.
File Path | Change Summary |
---|---|
.../button/button.test.tsx |
Removed jest-styled-components import. |
.../tab/styles.ts |
Refactored styling logic using styled-components , introduced TabProps , and updated theme colors. |
.../tab/tab.test.tsx |
Updated test setup to use renderWithTheme , added snapshot testing for component variations. |
.../tab/tab.tsx |
Refactored to use styled-components , removed StitchesTabProps , added getIconSize function. |
.../tabGroup/... |
Updated testing setup and component import statements, enhanced test coverage with snapshot testing. |
tab.tsx
and styles.ts
files.tabGroup.tsx
and its test file.🐇✨ In the realm of code where the rabbits hop,
A change was made, oh what a swap!
Styled-components now lead the way,
Making the UI dance and sway.
Cheers to the devs, so keen and bright,
For making the interface a delightful sight.
🌈🎉
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?
Summary by CodeRabbit
Refactor
Style
Tests