Skip to content

Commit 07d9013

Browse files
committed
docs: store identifier class
1 parent 667981f commit 07d9013

File tree

1 file changed

+3
-3
lines changed
  • docs/content/guides/7.multistore/3.patterns/5.subpath

1 file changed

+3
-3
lines changed

Diff for: docs/content/guides/7.multistore/3.patterns/5.subpath/1.subpath.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ There are two key steps to implement store-specific styling:
247247

248248
### 1. Applying Store Identifier Class
249249

250-
First, you need to apply the store identifier as a CSS class to enable different styles for each store:
250+
First, you need to apply the store identifier as a CSS class to enable different styles for each store. The class should be applied to an HTML element that is as high as possible in the document hierarchy (like `html`, `body`, or the root layout element). This is crucial because it allows us to style any nested elements using the store-specific variants.
251251

252252
::tabs{:titles='["Next.js", "Nuxt"]'}
253253

254254
#tab-1
255-
In your Next.js layout, apply the configId as a class:
255+
In your Next.js layout, apply the configId as a class to the root layout element:
256256

257257
```tsx
258258
// apps/storefront-unified-nextjs/app/[locale]/[configId]/layout.tsx
@@ -274,7 +274,7 @@ export default function Layout({ children, params: { configId } }: LayoutProps)
274274
```
275275

276276
#tab-2
277-
In your Nuxt app.vue, apply the configId as a class:
277+
In your Nuxt app.vue, apply the configId as a class to the `Body` component:
278278

279279
```vue
280280
// apps/storefront-unified-nuxt/app.vue

0 commit comments

Comments
 (0)