Open Flambe opened 2 months ago
The changes to the FwbAlert.vue
component involve the implementation of Vue's computed
properties to manage class names dynamically. This enhancement allows the closeBtnClasses
and wrapperClasses
to update automatically based on prop changes, improving the component's responsiveness. Additionally, the import statement has been modified to include computed
, reflecting its new usage.
Files | Change Summary |
---|---|
src/components/FwbAlert/FwbAlert.vue |
Updated import statement to include computed . Changed closeBtnClasses and wrapperClasses to computed properties for dynamic class handling. |
In a meadow bright, where the flowers sway,
A rabbit hops joyfully, celebrating the day.
With classes that change like the clouds in the sky,
Our FwbAlert dances, oh my, oh my!
Hooray for the updates, so clever and neat,
A stylish new look, oh, what a treat! 🐇✨
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?
Name | Link |
---|---|
Latest commit | b8e5b821cfcc59802b146284212f0702f1970c82 |
Latest deploy log | https://app.netlify.com/sites/sensational-seahorse-8635f8/deploys/66d58eea2bba610008ec73a9 |
Deploy Preview | https://deploy-preview-320--sensational-seahorse-8635f8.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Some of the props for the alert component are only parsed on init so any changes aren't reflect unless the component is rerendered. Switched those bits to use computed refs so they do listen for prop changes
Summary by CodeRabbit
FwbAlert
component with dynamic class name handling for improved responsiveness based on props.