From d54034bdbd1d90256022219e6cf5ccbfd37081bd Mon Sep 17 00:00:00 2001
From: "Amir H. Hashemi" <87268103+amirhhashemi@users.noreply.github.com>
Date: Mon, 16 Jun 2025 11:10:03 +0330
Subject: [PATCH] Update info callout titles
---
WRITING.md | 2 +-
src/routes/concepts/components/basics.mdx | 4 +--
.../concepts/components/class-style.mdx | 2 +-
.../concepts/components/event-handlers.mdx | 2 +-
src/routes/concepts/context.mdx | 2 +-
src/routes/concepts/control-flow/portal.mdx | 2 +-
src/routes/concepts/effects.mdx | 2 +-
src/routes/concepts/refs.mdx | 4 +--
src/routes/concepts/signals.mdx | 4 +--
src/routes/concepts/stores.mdx | 6 ++---
src/routes/concepts/understanding-jsx.mdx | 4 +--
.../configuration/environment-variables.mdx | 2 +-
src/routes/configuration/typescript.mdx | 10 ++++----
.../guides/complex-state-management.mdx | 2 +-
src/routes/guides/routing-and-navigation.mdx | 2 +-
src/routes/guides/state-management.mdx | 2 +-
.../guides/styling-components/tailwind.mdx | 2 +-
src/routes/guides/testing.mdx | 2 +-
src/routes/pt-br/quick-start.mdx | 2 +-
src/routes/pt-br/solid-router/quick-start.mdx | 2 +-
src/routes/quick-start.mdx | 2 +-
.../basic-reactivity/create-signal.mdx | 8 +++---
.../reference/components/no-hydration.mdx | 2 +-
src/routes/reference/components/suspense.mdx | 2 +-
src/routes/reference/jsx-attributes/attr.mdx | 2 +-
src/routes/reference/jsx-attributes/bool.mdx | 2 +-
.../reference/jsx-attributes/classlist.mdx | 4 +--
src/routes/reference/jsx-attributes/on.mdx | 2 +-
src/routes/reference/jsx-attributes/prop.mdx | 4 +--
.../reactive-utilities/catch-error.mdx | 2 +-
.../reference/reactive-utilities/on-util.mdx | 2 +-
.../reference/rendering/render-to-stream.mdx | 2 +-
.../server-utilities/get-request-event.mdx | 2 +-
.../store-utilities/create-mutable.mdx | 2 +-
.../installation-and-setup.mdx | 2 +-
.../solid-router/concepts/dynamic-routes.mdx | 2 +-
.../solid-router/concepts/path-parameters.mdx | 2 +-
.../concepts/search-parameters.mdx | 2 +-
.../solid-router/getting-started/config.mdx | 2 +-
src/routes/solid-router/index.mdx | 2 +-
.../solid-router/reference/components/a.mdx | 2 +-
.../reference/components/route.mdx | 2 +-
.../reference/data-apis/cache.mdx | 2 +-
.../reference/data-apis/query.mdx | 2 +-
.../reference/data-apis/use-action.mdx | 2 +-
.../reference/data-apis/use-submission.mdx | 2 +-
.../reference/data-apis/use-submissions.mdx | 2 +-
.../reference/primitives/use-navigate.mdx | 2 +-
.../building-your-application/api-routes.mdx | 2 +-
src/routes/solid-start/getting-started.mdx | 2 +-
.../solid-start/guides/data-fetching.mdx | 4 +--
.../solid-start/guides/data-mutation.mdx | 2 +-
.../reference/server/create-middleware.mdx | 2 +-
src/solidbase-theme/mdx-components.tsx | 12 ++++++---
src/ui/callout.tsx | 25 +++++++++----------
55 files changed, 89 insertions(+), 86 deletions(-)
diff --git a/WRITING.md b/WRITING.md
index e31df890b4..f1e371efc5 100644
--- a/WRITING.md
+++ b/WRITING.md
@@ -66,7 +66,7 @@ We ask that you use them sparingly.
3. Once you have the Aside component imported, simply follow the below example for how to add one to your document.
```
-:::info
+:::note
content here
:::
```
diff --git a/src/routes/concepts/components/basics.mdx b/src/routes/concepts/components/basics.mdx
index fd4d002d64..570f481082 100644
--- a/src/routes/concepts/components/basics.mdx
+++ b/src/routes/concepts/components/basics.mdx
@@ -27,7 +27,7 @@ function App() {
}
```
-:::info[Note]
+:::note
Component names must start with a capital letter to distinguish them from regular HTML elements.
Otherwise, they won't be recognized as components.
@@ -155,7 +155,7 @@ This example uses a [ternary operator](https://developer.mozilla.org/en-US/docs/
When `count` is greater than 5, the component will display `"Count limit reached"`.
Otherwise, it will display the current count with an increment button.
-:::info
+:::note
To simplify conditional rendering, Solid provides built-in [control-flow](/concepts/control-flow/conditional-rendering) components like [`Show`](/concepts/control-flow/conditional-rendering#show), which create a more readable conditional rendering experience.
```tsx
diff --git a/src/routes/concepts/components/class-style.mdx b/src/routes/concepts/components/class-style.mdx
index d71c419b1d..a334d1e72a 100644
--- a/src/routes/concepts/components/class-style.mdx
+++ b/src/routes/concepts/components/class-style.mdx
@@ -96,7 +96,7 @@ const [current, setCurrent] = createSignal("foo");
This is because `classList` selectively toggles only the classes that require alteration, while `class` will be re-evaluated each time.
For a single conditional class, using `class` might be simpler but as the number of conditional classes increases, `classList` offers a more readable and declarative approach.
-:::info
+:::note
While it is possible, mixing `class` and `classList` can introduce unexpected errors.
If both are reactive when the `class` value changes, Solid will set the entire `class` attribute.
This will remove any classes set by `classList`.
diff --git a/src/routes/concepts/components/event-handlers.mdx b/src/routes/concepts/components/event-handlers.mdx
index 13d7085677..3ca8658101 100644
--- a/src/routes/concepts/components/event-handlers.mdx
+++ b/src/routes/concepts/components/event-handlers.mdx
@@ -182,7 +182,7 @@ button
```
-:::info[onInput / onChange]
+:::note[onInput / onChange]
`onChange` and `onInput` events work according to their native behavior:
- `onInput` will fire immediately after the value has changed
diff --git a/src/routes/concepts/context.mdx b/src/routes/concepts/context.mdx
index 109f1c68b3..714ae7c266 100644
--- a/src/routes/concepts/context.mdx
+++ b/src/routes/concepts/context.mdx
@@ -247,7 +247,7 @@ function Child() {
If no default value is passed to `createContext`, it is possible for `useContext` to return `undefined`.
-:::info[More on default values]
+:::note[More on default values]
Read more about default values in the [`createContext`](/reference/component-apis/create-context) entry.
:::
diff --git a/src/routes/concepts/control-flow/portal.mdx b/src/routes/concepts/control-flow/portal.mdx
index fe20f754fc..3c44995e4f 100644
--- a/src/routes/concepts/control-flow/portal.mdx
+++ b/src/routes/concepts/control-flow/portal.mdx
@@ -38,7 +38,7 @@ By putting the element outside of the parent element, it is no longer bound by t
This creates a more accessible experience for users, as the content is no longer obscured.
-:::info
+:::note
`