-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix alert spacing issues #38569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix alert spacing issues #38569
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe changes reorganize and refine the SCSS styling for alert components. Property orders within the alert container and its variants are adjusted for consistency, and a new selector ensures the last child within an alert does not have a bottom margin. The margin removal for paragraph elements is also updated, and background color declarations for alert variants are repositioned within their respective blocks. No color values or other style properties are altered. Changes
Sequence Diagram(s)No sequence diagram is necessary for these style-only changes. Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
padding: 20px 24px 20px 24px; | ||
position: relative; | ||
|
||
>*:last-of-type { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kinda agree with Paulus here, you want to use :last-child
here I think?
Proposed change
Fixes instances where margins double up and make inconsistent spacing for alerts. Also tidied up the SCSS file
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit