Skip to content

Commit

Permalink
webui-disclosure docs
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed Apr 3, 2024
1 parent 3a73486 commit 8504294
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,5 @@ import * as WebUIDisclosure from './WebUIDisclosure.stories';
- This is functionally equivalent to the [disclosure](/story/components-disclosure-or-show-hide--disclosure) component, with the same accessibility considerations.
- The `data-` attributes that handle the functionality have been subtly renamed.

## TBC
- The JavaScript logic to handle showing/hiding of content is imported from an external shared utility function in `src/javascript/utils/disclosure.ts` to maintain the [DRY code](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) approach in this boilerplate.
- This might be refactored, to allow all logic to be contained within the web component itself?

<Canvas of={WebUIDisclosure.WebUIDisclosure} />
<Controls of={WebUIDisclosure.WebUIDisclosure} />

0 comments on commit 8504294

Please sign in to comment.