-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: Change visual emphasis of code snippets and info callout #14065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Change visual emphasis of code snippets and info callout #14065
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Bundle ReportChanges will increase total bundle size by 328 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-server-cjsAssets Changed:
Files in
App Routes Affected:
view changes for bundle: sentry-docs-client-array-pushAssets Changed:
Files in
|
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]>
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]>
Code snippets across the documentation application now feature a consistent border style, aligning with the
Expandablecomponent'scalloutstyling for visual cohesion.This involved updating borders to
1px solid var(--accent-11)andborder-radiusto6pxacross 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:
src/components/codeBlock/code-blocks.module.scss:pre[class*='language-']now hasborder: 1px solid var(--accent-11)andborder-radius: 6px.preelement'sborder-radiuswas also updated to6pxfor consistency.src/components/codeTabs.tsx:TabBarand the codeContainernow use1px solid var(--accent-11)borders.TabBarborder-radiuswas set to6px 6px 0 0, andContainerborder-radiusto0 0 6px 6pxto maintain rounded corners.src/components/codeHighlights/codeHighlights.tsx:HighlightBlockContainerreceivedborder: 1px solid var(--accent-11)andborder-radius: 6px.