Skip to content

Commit

Permalink
docs(skip-link): add target element to story
Browse files Browse the repository at this point in the history
  • Loading branch information
samrichardsontylertech committed Oct 11, 2024
1 parent 094b1a1 commit 6116718
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/stories/components/skip-link/SkipLink.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ const meta = {
const cssVarArgs = getCssVariableArgs(args);
const style = cssVarArgs ? styleMap(cssVarArgs) : nothing;
return html`
<forge-skip-link
.target=${args.target}
.theme=${args.theme}
.muted=${args.muted}
.persistent=${args.persistent}
.inline=${args.inline}
style=${style}></forge-skip-link>
<div>
<forge-skip-link
target="main-content"
.theme=${args.theme}
.muted=${args.muted}
.persistent=${args.persistent}
.inline=${args.inline}
style=${style}></forge-skip-link>
<div id="main-content" tabindex="0">Target</div>
</div>
`;
},
parameters: {
Expand All @@ -30,7 +33,6 @@ const meta = {
...generateCustomElementArgTypes({
tagName: component,
controls: {
target: { control: 'text' },
theme: { control: 'select', options: ['default', 'primary', 'secondary', 'tertiary', 'success', 'error', 'warning', 'info'] },
muted: { control: 'boolean' },
persistent: { control: 'boolean' },
Expand All @@ -39,7 +41,6 @@ const meta = {
})
},
args: {
target: 'main-content',
theme: 'default',
muted: false,
persistent: false,
Expand Down

0 comments on commit 6116718

Please sign in to comment.