Skip to content

Conversation

@codyde
Copy link
Contributor

@codyde codyde commented Jun 18, 2025

Code snippets across the documentation application now feature a consistent border style, aligning with the Expandable component's callout styling for visual cohesion.

This involved updating borders to 1px solid var(--accent-11) and border-radius to 6px across various code-related components.

Also updated callout-info boxes to an accent of 6 instead to reduce visual of the container itself. Text styling is unchanged to still pull in on text as needed, Creates a better contast.

Specific changes were applied to:

  • Main code blocks in src/components/codeBlock/code-blocks.module.scss:
    • pre[class*='language-'] now has border: 1px solid var(--accent-11) and border-radius: 6px.
    • The pre element's border-radius was also updated to 6px for consistency.
  • Code tabs in src/components/codeTabs.tsx:
    • The TabBar and the code Container now use 1px solid var(--accent-11) borders.
    • TabBar border-radius was set to 6px 6px 0 0, and Container border-radius to 0 0 6px 6px to maintain rounded corners.
  • Code highlights in src/components/codeHighlights/codeHighlights.tsx:
    • The HighlightBlockContainer received border: 1px solid var(--accent-11) and border-radius: 6px.
  • Updated callout styles.scss to reduce the intensity of highlight color

@vercel
Copy link

vercel bot commented Jun 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2025 7:28am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 18, 2025 7:28am

@codyde codyde changed the title Add rounded border to code snippets feat: Change visual emphasis of code snippets and info callout Jun 18, 2025
@codyde codyde requested a review from coolguyzone June 18, 2025 07:08
@codecov
Copy link

codecov bot commented Jun 18, 2025

Bundle Report

Changes will increase total bundle size by 328 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 10.92MB 151 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.77MB 177 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.64MB -0.0%
../instrumentation.js -3 bytes 973.36kB -0.0%
9523.js -3 bytes 949.31kB -0.0%
../app/[[...path]]/page.js 160 bytes 590.77kB 0.03%

Files in ../app/[[...path]]/page.js:

  • ./src/components/codeTabs.tsx → Total Size: 5.66kB

  • ./src/components/codeTabs.tsx → Total Size: 444 bytes

  • ./src/components/codeBlock/code-blocks.module.scss → Total Size: 300 bytes

App Routes Affected:

App Route Size Change Total Size Change (%)
/[[...path]] 160 bytes 3.14MB 0.01%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 873.24kB -0.0%
static/css/*.css 18 bytes 18.78kB 0.1%
static/chunks/7750-*.js -3 bytes 401.83kB -0.0%
static/chunks/app/[[...path]]/page-*.js 165 bytes 83.17kB 0.2%
static/Zy2yVm9qTWbFSLAtDWNpC/_buildManifest.js (New) 616 bytes 616 bytes 100.0% 🚀
static/Zy2yVm9qTWbFSLAtDWNpC/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/P9cNiAJohrKD_X6y6Fl94/_buildManifest.js (Deleted) -616 bytes 0 bytes -100.0% 🗑️
static/P9cNiAJohrKD_X6y6Fl94/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

Files in static/chunks/app/[[...path]]/page-*.js:

  • ./src/components/codeBlock/code-blocks.module.scss → Total Size: 309 bytes

  • ./src/components/codeTabs.tsx → Total Size: 6.49kB

@codyde codyde merged commit 8cf0db1 into master Jun 18, 2025
14 checks passed
@codyde codyde deleted the cursor/add-rounded-border-to-code-snippets-d8dc branch June 18, 2025 13:11
antonpirker pushed a commit that referenced this pull request Jun 24, 2025
Code snippets across the documentation application now feature a
consistent border style, aligning with the `Expandable` component's
`callout` styling for visual cohesion.

This involved updating borders to `1px solid var(--accent-11)` and
`border-radius` to `6px` across various code-related components.

Also updated callout-info boxes to an accent of 6 instead to reduce
visual of the container itself. Text styling is unchanged to still pull
in on text as needed, Creates a better contast.

Specific changes were applied to:
* Main code blocks in
`src/components/codeBlock/code-blocks.module.scss`:
* `pre[class*='language-']` now has `border: 1px solid var(--accent-11)`
and `border-radius: 6px`.
* The `pre` element's `border-radius` was also updated to `6px` for
consistency.
*   Code tabs in `src/components/codeTabs.tsx`:
* The `TabBar` and the code `Container` now use `1px solid
var(--accent-11)` borders.
* `TabBar` `border-radius` was set to `6px 6px 0 0`, and `Container`
`border-radius` to `0 0 6px 6px` to maintain rounded corners.
* Code highlights in `src/components/codeHighlights/codeHighlights.tsx`:
* The `HighlightBlockContainer` received `border: 1px solid
var(--accent-11)` and `border-radius: 6px`.
* Updated callout styles.scss to reduce the intensity of highlight color

---------

Co-authored-by: Cursor Agent <[email protected]>
bitsandfoxes pushed a commit that referenced this pull request Jul 3, 2025
Code snippets across the documentation application now feature a
consistent border style, aligning with the `Expandable` component's
`callout` styling for visual cohesion.

This involved updating borders to `1px solid var(--accent-11)` and
`border-radius` to `6px` across various code-related components.

Also updated callout-info boxes to an accent of 6 instead to reduce
visual of the container itself. Text styling is unchanged to still pull
in on text as needed, Creates a better contast.

Specific changes were applied to:
* Main code blocks in
`src/components/codeBlock/code-blocks.module.scss`:
* `pre[class*='language-']` now has `border: 1px solid var(--accent-11)`
and `border-radius: 6px`.
* The `pre` element's `border-radius` was also updated to `6px` for
consistency.
*   Code tabs in `src/components/codeTabs.tsx`:
* The `TabBar` and the code `Container` now use `1px solid
var(--accent-11)` borders.
* `TabBar` `border-radius` was set to `6px 6px 0 0`, and `Container`
`border-radius` to `0 0 6px 6px` to maintain rounded corners.
* Code highlights in `src/components/codeHighlights/codeHighlights.tsx`:
* The `HighlightBlockContainer` received `border: 1px solid
var(--accent-11)` and `border-radius: 6px`.
* Updated callout styles.scss to reduce the intensity of highlight color

---------

Co-authored-by: Cursor Agent <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants