diff --git a/docs/contributing/pages/components.mdx b/docs/contributing/pages/components.mdx index bed2e3289b9f1..898ef7996094e 100644 --- a/docs/contributing/pages/components.mdx +++ b/docs/contributing/pages/components.mdx @@ -25,7 +25,7 @@ This is an alert Attributes: - `title` (string) -- `level` (string: `'info' | 'warning' | 'danger' | 'success'`) +- `level` (string: `'info' | 'warning'`) Use this for these types of content: diff --git a/docs/platforms/javascript/common/best-practices/shared-environments.mdx b/docs/platforms/javascript/common/best-practices/shared-environments.mdx index 064d7dfb7be66..9180a170894fa 100644 --- a/docs/platforms/javascript/common/best-practices/shared-environments.mdx +++ b/docs/platforms/javascript/common/best-practices/shared-environments.mdx @@ -39,7 +39,7 @@ These best practices are relevant for you if you set up Sentry in one of the fol - Libraries - Any other scenario where you might have multiple Sentry instances running in the same environment - + When setting up Sentry in a shared environment where multiple Sentry instances may run, you should **not use `Sentry.init()`**, as this will pollute the global state. If your browser extension uses `Sentry.init()`, and a website also uses Sentry, the extension may send events to the website's Sentry project, or vice versa. @@ -121,7 +121,7 @@ Sentry.init({ }); ``` - + You shouldn't use this option if you're in fact using the SDK in a browser extension or another shared environment. Initializing the SDK via `Sentry.init` has no advantages over manually setting up the client and scope as described on this page. diff --git a/docs/platforms/javascript/common/session-replay/index.mdx b/docs/platforms/javascript/common/session-replay/index.mdx index 78202a8b41026..d2ab9693c85a2 100644 --- a/docs/platforms/javascript/common/session-replay/index.mdx +++ b/docs/platforms/javascript/common/session-replay/index.mdx @@ -27,7 +27,7 @@ description: "Learn how to enable Session Replay in your app if it is not alread By default, our Session Replay SDK masks all DOM text content, images, and user input, giving you heightened confidence that no sensitive data will leave the browser. To learn more, see Session Replay Privacy. - + Angular's default "Change Detection" strategy monkeypatches browser globals and can break or cause performance regressions in your application when using Session Replay. To avoid this, we recommend you use the `OnPush` strategy when using Angular. diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx index d489247a1a80b..f799160362ab3 100644 --- a/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx +++ b/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx @@ -21,7 +21,7 @@ This guide assumes you're using a Sentry **SDK version `7.47.0` or higher**. If "javascript.cordova", ]}> - + The Sentry esbuild plugin doesn't fully support esbuild configurations with `splitting: true`. If you rely on code splitting, use the esbuild plugin with legacy source maps upload diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx index 1967781879aca..7b6877e9924c8 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup.mdx @@ -442,7 +442,7 @@ module.exports = withSentryConfig(nextConfig, { Alternatively, you can set the `SENTRY_AUTH_TOKEN` environment variable: - + Do not commit your auth token to version control. diff --git a/includes/metrics-api-change.mdx b/includes/metrics-api-change.mdx index 7ef8367c07071..08b9e81790e54 100644 --- a/includes/metrics-api-change.mdx +++ b/includes/metrics-api-change.mdx @@ -1,3 +1,3 @@ - + Thank you for participating in our Metrics beta program. After careful consideration, we have ended the beta program and retired the current Metrics solution. We're actively developing a new solution that will make tracking and debugging any issues in your application easier. [Learn more](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Upcoming-API-Changes-to-Metrics). diff --git a/src/components/alert/index.tsx b/src/components/alert/index.tsx index 550cbaba70b13..99de24e07ce2f 100644 --- a/src/components/alert/index.tsx +++ b/src/components/alert/index.tsx @@ -6,7 +6,7 @@ import './styles.scss'; type AlertProps = { children?: ReactNode; - level?: 'info' | 'warning' | 'danger' | 'success' | ''; + level?: 'info' | 'warning'; title?: string; }; diff --git a/src/components/alert/styles.scss b/src/components/alert/styles.scss index 02dd702abf406..a596c47c4cded 100644 --- a/src/components/alert/styles.scss +++ b/src/components/alert/styles.scss @@ -1,5 +1,4 @@ -.alert, -.note { +.alert { background: var(--accent-2); border-color: var(--accent-12); border-left: 3px solid var(--accent-12); @@ -52,15 +51,3 @@ border-color: var(--amber-10); color: var(--amber-12); } - -.alert-danger { - background: var(--red-2); - border-color: var(--red-10); - color: var(--red-12); -} - -.alert-success { - background: var(--green-2); - border-color: var(--green-10); - color: var(--green-12); -}