fix: inconsistent text color in release notes last line (#11480)
Move color and font-size styles from p selector to container level in UpdateNotesWrapper. This ensures all content (including li elements not wrapped in p tags) uses consistent color. The issue occurred because .replace(/\n/g, '\n\n') creates a "loose list" in Markdown where most list items get wrapped in <p> tags, but the last item (without trailing newline) may not, causing it to inherit a different color from the parent .markdown class. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -404,11 +404,11 @@ const UpdateNotesWrapper = styled.div`
|
||||
margin: 8px 0;
|
||||
background-color: var(--color-bg-2);
|
||||
border-radius: 6px;
|
||||
color: var(--color-text-2);
|
||||
font-size: 14px;
|
||||
|
||||
p {
|
||||
margin: 0;
|
||||
color: var(--color-text-2);
|
||||
font-size: 14px;
|
||||
}
|
||||
`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user