fix: adjust font size of code elements within headings to ensure cons… #1448
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.
…istent styling
Apply :has() selector to make code elements inherit font size from their heading parents. This ensures visual consistency in markdown headings containing code blocks.
Context
This PR fixes a styling issue where code elements within headings (h1-h6) were using a smaller font size compared to the rest of the heading text. The inconsistent sizing created a jarring visual experience when headings contained code blocks.
Implementation
:has()selector to make code elements inherit font size from their heading parentsStyledMarkdowncomponent to ensure proper scopingScreenshots
How to Test
Ask Roo:
create a sample response from a Markdown block that includes a heading with code elements embedded within itGet in Touch
tgfjt
Important
Adjusts font size of
codeelements within headings inStyledMarkdownto ensure consistent styling in markdown headings with code blocks.codeelements within headings (h1-h6) to inherit from parent heading using:has()selector inStyledMarkdown.StyledMarkdowncomponent inMarkdownBlock.tsxto apply the fix.This description was created by
for 1235db6. It will automatically update as commits are pushed.