mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
docs(code-snippet): update hidden example copy
This commit is contained in:
parent
25a7ceacf8
commit
882737c8b8
2 changed files with 4 additions and 2 deletions
|
@ -59,7 +59,7 @@ For dynamically updated code, you must use the `code` prop instead of the defaul
|
|||
|
||||
### Hidden multi-line code
|
||||
|
||||
There may be cases where your code snippet is visually hidden. The logic to render the "Show more" button relies on the element's computed height. For visually hidden content, the button will not appear because the height is `0`.
|
||||
There may be cases where your code snippet is hidden in the DOM. The logic to render the "Show more" button relies on the element's computed height. For hidden content, the button will not appear because the computed height is `0`.
|
||||
|
||||
The recommended workaround is to re-render the component. See the example below.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue