Skip to content

Commit

Permalink
mdx tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
basher committed Apr 2, 2024
1 parent 446b1a0 commit fdabfe4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/stories/5. Components/Disclosure/Disclosure.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as Disclosure from './Disclosure.stories';
- Similarly, the `data-disclosure-click-outside` attribute hides the content when clicking anywhere outside the content.

## Web component version
- See the equivalent [webui-disclosure](/story/web-components-or-custom-elements-webui-disclosure--web-ui-disclosure) custom element.
- See the equivalent [`<webui-disclosure>`](/story/web-components-or-custom-elements-webui-disclosure--web-ui-disclosure) custom element.

<Canvas of={Disclosure.Disclosure} />
<Controls of={Disclosure.Disclosure} />
4 changes: 2 additions & 2 deletions ui/stories/5. Components/Share/Share.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import * as Share from './Share.stories';
- Fallback behaviour uses the [disclosure](/story/components-disclosure-or-show-hide--disclosure) pattern, and allows user to copy the URL.

## Web component version
- See the equivalent [webui-share](/story/web-components-or-custom-elements-webui-share--web-ui-share) custom element.
- See the equivalent [`<webui-share>`](/story/web-components-or-custom-elements-webui-share--web-ui-share) custom element.

## TODO
- Replace fallback [document.execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand) with [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API).

<Canvas of={Share.Share} />

## Share a different URL
## Share another URL
<Canvas of={Share.ShareAnotherUrl} />
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import * as WebUIShare from './WebUIShare.stories';

# `<webui-share>`
- This is functionally equivalent to the [share](/story/components-share--share) component.
- It is a simple `wrapper` around the [webui-disclosure](/story/web-components-or-custom-elements-webui-disclosure--web-ui-disclosure) custom element.
- It is a simple `wrapper` around the [`<webui-disclosure>`](/story/web-components-or-custom-elements-webui-disclosure--web-ui-disclosure) custom element.

<Canvas of={WebUIShare.WebUIShare} />

## Share a different URL
## `<webui-share>` another URL
<Canvas of={WebUIShare.WebUIShareAnotherUrl} />

0 comments on commit fdabfe4

Please sign in to comment.