fix: add overflow hidden to code group containers for corner radius clipping#205
Open
patcapulong wants to merge 2 commits intomainfrom
Open
fix: add overflow hidden to code group containers for corner radius clipping#205patcapulong wants to merge 2 commits intomainfrom
patcapulong wants to merge 2 commits intomainfrom
Conversation
…lipping The general .code-group CSS rule was missing overflow: hidden, causing inner elements (with border-radius: 0) to bleed through the parent's rounded border on production. This made corners appear sharp and borders clipped on API reference code blocks. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Greptile SummaryAdds
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| mintlify/style.css | Adds overflow: hidden !important to general .code-group selector to fix corner radius clipping on API reference pages |
Last reviewed commit: 3923c34
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.
Summary
overflow: hidden !importantto the general.code-group, [data-testid="code-group-select"]CSS rule inmintlify/style.cssoverflow-hiddenclass is no longer being applied to code group containersContext
The content-area scoped rule (
#content .code-group, etc.) already hadoverflow: hidden, but the general selector used by API reference pages did not. Without it, inner elements withborder-radius: 0bleed through the parent's rounded border, making corners appear sharp.Test plan
Made with Cursor