Skip to content

Commit 3c1659a

Browse files
fix: update links to single-file-component.html (#589)
1 parent 8ee82a9 commit 3c1659a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/style-guide/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ Alternatively, we can use a `<template>` tag with `v-for` to wrap the `<li>` ele
292292

293293
**For applications, styles in a top-level `App` component and in layout components may be global, but all other components should always be scoped.**
294294

295-
This is only relevant for [single-file components](../guide/single-file-components.html). It does _not_ require that the [`scoped` attribute](https://vue-loader.vuejs.org/en/features/scoped-css.html) be used. Scoping could be through [CSS modules](https://vue-loader.vuejs.org/en/features/css-modules.html), a class-based strategy such as [BEM](http://getbem.com/), or another library/convention.
295+
This is only relevant for [single-file components](../guide/single-file-component.html). It does _not_ require that the [`scoped` attribute](https://vue-loader.vuejs.org/en/features/scoped-css.html) be used. Scoping could be through [CSS modules](https://vue-loader.vuejs.org/en/features/css-modules.html), a class-based strategy such as [BEM](http://getbem.com/), or another library/convention.
296296

297297
**Component libraries, however, should prefer a class-based strategy instead of using the `scoped` attribute.**
298298

@@ -513,7 +513,7 @@ components/
513513

514514
### Single-file component filename casing <sup data-p="b">strongly recommended</sup>
515515

516-
**Filenames of [single-file components](../guide/single-file-components.html) should either be always PascalCase or always kebab-case.**
516+
**Filenames of [single-file components](../guide/single-file-component.html) should either be always PascalCase or always kebab-case.**
517517

518518
PascalCase works best with autocompletion in code editors, as it's consistent with how we reference components in JS(X) and templates, wherever possible. However, mixed case filenames can sometimes create issues on case-insensitive file systems, which is why kebab-case is also perfectly acceptable.
519519

@@ -794,7 +794,7 @@ components/
794794

795795
### Self-closing components <sup data-p="b">strongly recommended</sup>
796796

797-
**Components with no content should be self-closing in [single-file components](../guide/single-file-components.html), string templates, and [JSX](../guide/render-function.html#JSX) - but never in DOM templates.**
797+
**Components with no content should be self-closing in [single-file components](../guide/single-file-component.html), string templates, and [JSX](../guide/render-function.html#JSX) - but never in DOM templates.**
798798

799799
Components that self-close communicate that they not only have no content, but are **meant** to have no content. It's the difference between a blank page in a book and one labeled "This page intentionally left blank." Your code is also cleaner without the unnecessary closing tag.
800800

@@ -830,7 +830,7 @@ Unfortunately, HTML doesn't allow custom elements to be self-closing - only [off
830830

831831
### Component name casing in templates <sup data-p="b">strongly recommended</sup>
832832

833-
**In most projects, component names should always be PascalCase in [single-file components](../guide/single-file-components.html) and string templates - but kebab-case in DOM templates.**
833+
**In most projects, component names should always be PascalCase in [single-file components](../guide/single-file-component.html) and string templates - but kebab-case in DOM templates.**
834834

835835
PascalCase has a few advantages over kebab-case:
836836

@@ -1422,7 +1422,7 @@ computed: {
14221422

14231423
### Single-file component top-level element order <sup data-p="c">recommended</sup>
14241424

1425-
**[Single-file components](../guide/single-file-components.html) should always order `<script>`, `<template>`, and `<style>` tags consistently, with `<style>` last, because at least one of the other two is always necessary.**
1425+
**[Single-file components](../guide/single-file-component.html) should always order `<script>`, `<template>`, and `<style>` tags consistently, with `<style>` last, because at least one of the other two is always necessary.**
14261426

14271427
<div class="style-example style-example-bad">
14281428
<h4>Bad</h4>

0 commit comments

Comments
 (0)