Skip to content

Commit

Permalink
Updates images to svg and adds css
Browse files Browse the repository at this point in the history
  • Loading branch information
edonehoo committed Oct 14, 2024
1 parent 7182109 commit c4bc38f
Show file tree
Hide file tree
Showing 8 changed files with 254 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ id: Accordion
section: components
---

import '../components.css';

## Elements

![Elements of accordion component](./img/accordion-elements.png)
<div class="ws-docs-content-img">
![Elements of accordion component](./img/accordion-elements.svg)
</div>

1. **Header:** Interactive link that expands or collapses to reveal the nested content.
2. **Label:** Summary descriptions of the nested content.
Expand Down Expand Up @@ -37,14 +41,18 @@ Users click or tap on section header of collapsed accordion and content area wil
Use when you are trying to bring focus to a single row at a time, by default the first row is always open. This is ideal for content that is mutually exclusive and doesn’t all need to be shown at once. Single expand accordions are particularly useful when working with forms, navigation and subnavigation.

<br />

![Accordion single expand behavior](./img/single-expand-accordion.png)

<div class="ws-docs-content-img">
![Accordion single expand behavior](./img/single-expand-accordion.svg)
</div>

* **Multiple expand behavior**: Use when users may want to view content from different sections simultaneously. This variation gives users the ability to open multiple rows at a time, content will expand or collapse per each interaction. This variation is frequently used in FAQ sections and product comparisons.

<br />

![Accordion multi-expand behavior](./img/multi-expand-accordion.png)

<div class="ws-docs-content-img">
![Accordion multi-expand behavior](./img/multi-expand-accordion.svg)
</div>

## Accessibility

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.ws-docs-content-img {
text-align: center;
margin-inline: auto;
width: 100%;
max-width: 700px;
}

0 comments on commit c4bc38f

Please sign in to comment.