Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the CSS selectors in the docs BlogLinkSection component to prevent the blog post link card border from being visually cut off by ensuring the intended card styles win in the cascade.
Changes:
- Increase selector specificity for
.prominent-link-cardbase styles by scoping them under.prominent-link-wrapper. - Increase selector specificity for
.prominent-link-card:hoverstyles similarly.
Comments suppressed due to low confidence (1)
docs/src/components/BlogLinkSection.astro:32
- The selector specificity for the base card styles was increased (now
.prominent-link-wrapper .prominent-link-card). As a result, the mobile@mediarule that still targets.prominent-link-card(line 85+) is less specific and will no longer override base properties likepaddingandgap, likely regressing the small-screen layout/overflow. Update the media-query selector(s) to match (or exceed) the new specificity (e.g., also prefix with.prominent-link-wrapper), or adjust the base selector to avoid out-specifying the responsive overrides.
.prominent-link-wrapper .prominent-link-card {
display: inline-flex;
align-items: center;
gap: 1.25rem;
padding: 1.5rem 2rem;
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before:
After: