Skip to content

Commit 109ca99

Browse files
committed
clarify defaultOpen info and take most of it out of AccordionGroups page
1 parent 465e150 commit 109ca99

File tree

3 files changed

+12
-31
lines changed

3 files changed

+12
-31
lines changed

fern/products/docs/pages/component-library/default-components/accordion-groups.mdx

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ description: 'Display expandable/collapsible options that reveal more informatio
66
Accordion Groups allow you to organize content into collapsible sections, making it easier for users to navigate through information. With recent updates, our Accordion component now supports improved search functionality using the browser's built-in search feature.
77

88
<AccordionGroup>
9-
<Accordion title="Basic usage" defaultOpen={true}>
10-
Accordion Groups can contain multiple Accordion items. Each item has a title and content that can be expanded or collapsed.
9+
<Accordion title="Basic usage">
10+
Accordion Groups can contain multiple Accordion items. Each item has a title and content that can be expanded or collapsed. You can use the `defaultOpen` prop to expand specific accordions by default when the page loads.
1111

1212
```jsx
1313
<AccordionGroup>
14-
<Accordion title="Section 1">
15-
Content for section 1
14+
<Accordion title="Section 1" defaultOpen={true}>
15+
Content for section 1, expanded by default
1616
</Accordion>
1717
<Accordion title="Section 2">
1818
Content for section 2
@@ -28,31 +28,12 @@ Accordion Groups allow you to organize content into collapsible sections, making
2828
<Accordion title="Accessibility">
2929
Our Accordion component is built with accessibility in mind, supporting keyboard navigation and screen readers.
3030
</Accordion>
31-
32-
<Accordion title="Default open state">
33-
You can use the `defaultOpen` property to have specific accordions expanded by default when the page loads. This is useful for highlighting important information or frequently accessed content.
34-
35-
```jsx
36-
<AccordionGroup>
37-
<Accordion title="Important Information" defaultOpen={true}>
38-
This accordion will be open by default
39-
</Accordion>
40-
<Accordion title="Additional Details">
41-
This accordion will be closed by default
42-
</Accordion>
43-
</AccordionGroup>
44-
```
45-
</Accordion>
4631
</AccordionGroup>
4732

4833
### Enhanced search functionality
4934

5035
The recent update to our Accordion component improves content discoverability by allowing users to search through all content, including collapsed sections, using the browser's search function (Cmd+F / Ctrl+F).
5136

52-
### Usage examples
53-
54-
Here are some examples of how to use the Accordion Group component:
55-
5637
<Tabs>
5738
<Tab title="Example">
5839
<AccordionGroup>

fern/products/docs/pages/component-library/default-components/accordions.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@ description: 'Expand or collapse to reveal more information'
66
The Accordion component allows you to create expandable sections in your documentation. Content within accordions is searchable using browser search (cmd+f) even when collapsed. The component is optimized for SEO with server-side HTML generation, ensuring search engines can properly index all content within accordions.
77

88
<Tabs>
9-
<Tab title="Example">
9+
<Tab title="Examples">
1010
<Accordion title='Single Accordion'>
1111
This is an example of an accordion component. When clicked, it expands to reveal this additional content.
1212
</Accordion>
13-
<Accordion title='Accordion Open by Default' defaultOpen={true}>
14-
This accordion is open by default using the `defaultOpen` property.
15-
</Accordion>
13+
<Accordion title='Accordion open by default' defaultOpen={true}>
14+
You can use the `defaultOpen` property to have specific accordions expanded by default when the page loads. This is useful for highlighting important information or frequently accessed content.
15+
</Accordion>
1616
</Tab>
1717
<Tab title="Markdown">
1818
```jsx
1919
<Accordion title='Single Accordion'>
2020
This is an example of an accordion component. When clicked, it expands to reveal this additional content.
2121
</Accordion>
2222

23-
<Accordion title='Accordion Open by Default' defaultOpen={true}>
24-
This accordion is open by default using the `defaultOpen` property.
23+
<Accordion title='Accordion open by default' defaultOpen={true}>
24+
You can use the `defaultOpen` property to have specific accordions expanded by default when the page loads. This is useful for highlighting important information or frequently accessed content.
2525
</Accordion>
2626
```
2727
</Tab>

fern/products/sdks/overview/java/changelog/2025-10-23.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## 3.9.2
22
**`(fix):`** Fix nullable field serialization in PATCH requests with wrapped request bodies. Explicit null values
3-
(Nullable.ofNull()) are now correctly serialized as {"field": null} instead of being omitted like
4-
Nullable.empty().
3+
`(Nullable.ofNull())` are now correctly serialized as `{"field": null}` instead of being omitted like
4+
`Nullable.empty()`.
55

66

77
## 3.9.1

0 commit comments

Comments
 (0)