Skip to content

Commit 3cc0838

Browse files
andgen404dchyun
authored andcommitted
Update website/docs/components/code-block/partials/guidelines/guidelines.md
1 parent 838e7ad commit 3cc0838

File tree

1 file changed

+1
-2
lines changed
  • website/docs/components/code-block/partials/guidelines

1 file changed

+1
-2
lines changed

website/docs/components/code-block/partials/guidelines/guidelines.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ In the Figma component, the code examples have the appropriate number of lines b
7373

7474
When displaying longer code snippets, it can be helpful to let users expand and collapse the content. Setting a `maxHeight` on the Code Block limits how much is shown by default. If the content exceeds this height, a **Show more code** button appears at the bottom of the block, allowing users to expand it. Interacting with the button again collapses it to it's original height.
7575

76-
In Figma, this is enabled by setting `hasToggleHeightButton` to true.
77-
The button is placed inside a footer element that only appears when the content overflows, keeping the layout clean when the toggle isn’t needed.
76+
In Figma, this is enabled by setting `hasToggleHeightButton` to true. The button is placed inside a footer element that only appears when the content overflows, keeping the layout clean when the toggle isn’t needed.
7877

7978
![Collapsed Code Block showing limited lines and a 'Show more code' button at the bottom.](/assets/components/code-block/code-block-collapsed.png)
8079

0 commit comments

Comments
 (0)