Closed danilo-moreira-brisa closed 6 months ago
The changes encompass a comprehensive update to improve the styling and functionality of various UI components like alerts, buttons, and steps. These enhancements involve transitioning to styled-components for better styling control, introducing new properties for added flexibility, and refining testing approaches to align with the updated components.
Files | Changes Summary |
---|---|
src/components/alert/... |
Refactored IonAlert to use styled-components, introduced onClose prop, and adjusted related test cases. |
src/components/button/... |
Updated label to be optional, added circular prop, and adjusted styles to accommodate the new properties. |
src/components/steps/steps.tsx |
Rearranged imports, fine-tuned step status check functions, and refined the styling logic for step components. |
IonAlert
to use styled-components directly addresses the objectives of this issue.🐰✨ In the land of code where the snippets play, A rabbit hopped through, refining away. Buttons now round, alerts neatly styled, With each commit pushed, the rabbit smiled. Celebrate the changes, for they are here to stay! 🎉🐾
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?
Depends on #159 to be merged.
Summary by CodeRabbit
New Features
IonAlert
component to include a newonClose
prop and usesIonButton
for the close action.circular
property toButtonProps
for applying circular styles conditionally.Bug Fixes
Refactor
AlertStyled
withAlert
andWrapper
components, restructuring styling logic.Button
component styling logic to dynamically calculate border radius.Tests
renderWithTheme
.Style