Closed brokewhale closed 1 month ago
The changes introduce a close button functionality to the WipCallout
component, allowing users to hide the callout. A new state variable manages its visibility, and the component's styling is adjusted to accommodate the close button. Additionally, minor formatting adjustments are made to related callout components. The CSS updates include changes to the positioning of the callout and the introduction of a new class for the close button.
File | Change Summary |
---|---|
components/WipCallout.tsx | Added close button functionality with a new state variable to manage visibility of the callout. |
styles/global.css | Updated styling for div.custom-callouts (positioning, padding, z-index) and added .callout-close-btn class. |
WipCallout
component, which is directly related to the changes made in the main PR, as both involve modifications to the same component in components/WipCallout.tsx
.position
property from sticky
to fixed
, which is relevant to the styling changes made in the main PR's styles/global.css
file.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 | 1a85deea2468f7b8f8a15c19f0ed022cbac76e95 |
Latest deploy log | https://app.netlify.com/sites/docs-optimism/deploys/66f5b9a9020b7c00081bef24 |
Deploy Preview | https://deploy-preview-933--docs-optimism.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.
Looks great! As long as the button is actually clickable on mobile and you check out my small comment, this looks great to me! Thanks!!
Can confirm the button works on mobile btw
@bradleycamacho please approval and merge.
added callout close btn
https://github.com/user-attachments/assets/8cd8a0e8-b101-4e1e-a5c4-ce627c24571e