${[
...bombArgs({
diff --git a/packages/documentation/src/stories/components/forms/slider/slider.stories.ts b/packages/documentation/src/stories/components/forms/slider/slider.stories.ts
index 63ec8f29f3..11b80f8019 100644
--- a/packages/documentation/src/stories/components/forms/slider/slider.stories.ts
+++ b/packages/documentation/src/stories/components/forms/slider/slider.stories.ts
@@ -195,46 +195,41 @@ function render(args: Args, context: StoryContext) {
?disabled="${args.disabled}"
aria-label="${useAriaLabel ? args.label : nothing}"
?aria-invalid="${VALIDATION_STATE_MAP[args.validation]}"
+ aria-describedby="${args.showValue === 'text' ? 'form-hint-' + id : ''}"
@input="${(e: MouseEvent) => updateArgs({ value: (e.target as HTMLInputElement).value })}"
/>
`;
- let valueElement: TemplateResult | TemplateResult[] | null = null;
+ let valueElement: TemplateResult | null = null;
- if (args.showValue === 'text') {
- valueElement = html`
${args.value}
`;
- } else if (args.showValue === 'input') {
+ if (args.showValue === 'input') {
const inputId = context.id
? `${context.id}_input`
: `${context.viewMode}_${context.name.replace(/\s/g, '-')}_ExampleRangeInput`;
- valueElement = [
- html`
`,
- html`
-
updateArgs({ value: (e.target as HTMLInputElement).value })}"
- />
- `,
- ];
- }
-
- if (args.showValue === 'input') {
return html`
${[label, control, ...contextual].filter(el => el !== null)}
-
${valueElement}
+
+
+ updateArgs({ value: (e.target as HTMLInputElement).value })}"
+ />
+
`;
- } else {
- return html`${[label, control, valueElement, ...contextual].filter(el => el !== null)}`;
+ } else if (args.showValue === 'text') {
+ valueElement = html`
${args.value}
`;
}
+
+ return html`${[label, control, valueElement, ...contextual].filter(el => el !== null)}`;
}
export const Default: Story = {};
diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
index d9e6521b8e..5db16960ff 100644
--- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
+++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
@@ -194,7 +194,9 @@ function renderTextarea(args: Args, context: StoryContext) {
args.validation === 'is-invalid'
? html`
Eraro okazis!
`
: null,
- args.hint !== '' ? html`
${args.hint}
` : null,
+ args.hint !== ''
+ ? html`
${args.hint}
`
+ : null,
];
const control = html`
Reset Search
) : null}
-
+
{`Showing ${this.state.icons.length} of ${report.icons.length} icons.`}
-
+
diff --git a/packages/documentation/src/stories/patterns/forms/forms.docs.mdx b/packages/documentation/src/stories/patterns/forms/forms.docs.mdx
index 422328226b..2dc4414f77 100644
--- a/packages/documentation/src/stories/patterns/forms/forms.docs.mdx
+++ b/packages/documentation/src/stories/patterns/forms/forms.docs.mdx
@@ -9,10 +9,7 @@ import * as FormPatternsStories from './forms.stories';
All things need to be contained inside a container. The container limits the size of the content and centers it on the page.
-