Skip to content

Commit da55959

Browse files
authored
docs: update scoped CSS links in style guide (#2269)
1 parent 6e37dd0 commit da55959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style-guide/rules-essential.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ const activeUsers = computed(() => {
333333

334334
アプリケーションの場合、トップレベルの `App` コンポーネントとレイアウトコンポーネントのスタイルはグローバルであってもかまいませんが、その他のコンポーネントは常にスコープされるべきです。
335335

336-
これは、[単一ファイルコンポーネント](/guide/scaling-up/sfc) にのみ関連しています。これは、[`scoped` 属性](https://vue-loader.vuejs.org/en/features/scoped-css.html) を使用することを必要としません。スコープは、[CSS モジュール](https://vue-loader.vuejs.org/en/features/css-modules.html)[BEM](http://getbem.com/) のようなクラスベースの戦略、あるいは他のライブラリーや規約を利用することができます。
336+
これは、[単一ファイルコンポーネント](/guide/scaling-up/sfc) にのみ関連しています。これは、[`scoped` 属性](https://vue-loader.vuejs.org/guide/scoped-css.html) を使用することを必要としません。スコープは、[CSS モジュール](https://vue-loader.vuejs.org/guide/css-modules.html)[BEM](http://getbem.com/) のようなクラスベースの戦略、あるいは他のライブラリーや規約を利用することができます。
337337

338338
**しかし、コンポーネントライブラリーは `scoped` 属性を使用する代わりに、クラスベースの戦略を取るべきです。**
339339

0 commit comments

Comments
 (0)