Improve documentation (#730)

* docs: fix "no-op" typo

* docs: add carbon-preprocess-svelte

* docs: use lg size for outbound link to source code

* docs: update copy

* docs: default to white theme

* docs(recursive-list): simplify copy

* docs(recursive-list): simplify copy

* docs: apply noGutter to installation code snippets
This commit is contained in:
Eric Liu 2021-07-08 16:30:53 -07:00 committed by GitHub
commit 569d7021cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 11 deletions

View file

@ -31,7 +31,7 @@ This component uses the native, asynchronous [Clipboard API](https://developer.m
Please note that the `clipboard.writeText` API is not supported in [IE 11 nor Safari iOS version 13.3 or lower](https://caniuse.com/mdn-api_clipboard_writetext).
You can override the default copy functionality with your own copy text implementation. See [Overriding copy functionality](#overriding-copy-functionality).
You can override the default copy functionality with your own implementation. See [Overriding copy functionality](#overriding-copy-functionality).
### Default (single-line)
@ -48,7 +48,7 @@ In this example, we use the open source module [clipboard-copy](https://github.c
### Preventing copy functionality
To prevent text from being copied entirely, pass a "noop" function to the `copy` prop.
To prevent text from being copied entirely, pass a no-op function to the `copy` prop.
<CodeSnippet code="yarn add -D carbon-components-svelte" copy={() => {}} />