-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix headings on latest blog cards #38701
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
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughThe changes update the heading levels in the news.html template file. Specifically, the "Release Notes" and "Recent Blog Posts" section headings are changed from level 2 headings ( Changes
Sequence Diagram(s)No sequence diagram generated as the changes are limited to HTML heading levels and do not affect control flow or feature logic. 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 (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
source/_includes/custom/news.html (2)
8-8
: Verify intended use of<h1>
for “Release Notes” section
Changing this from<h2>
to<h1>
introduces an additional top-level heading. For accessibility and SEO best practices, pages typically have a single<h1>
(the page title), with subsections using<h2>
or deeper. Please confirm that multiple<h1>
tags are acceptable in your design system, or consider reverting to<h2>
/<h3>
to maintain a proper hierarchy.
35-35
: Verify intended use of<h1>
for “Recent Blog Posts” section
Similarly, this section now uses<h1>
, further increasing top-level headings on the page. If the goal is consistent subsection styling, a lower-level heading (e.g.<h2>
) may be more appropriate. Please ensure the overall heading structure remains semantically correct.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
source/_includes/custom/news.html
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
Using h1's for these cards is not correct hence my fix to move these to h2's. However, it appears that h1's and h2's are styled differently for the material cards. Something I will put a better fix in for tomorrow |
Proposed change
The PR that separated the blog posts had a Copilot fix for heading structure which in-turn broke the style of the heading in those cards
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.