Skip to content

Commit

Permalink
test(sbb-form-field): add forced colors tests (#2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Aug 8, 2024
1 parent 733914e commit 6ed0752
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 171 deletions.
11 changes: 5 additions & 6 deletions src/elements/form-field/form-field/form-field.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { styleMap } from 'lit/directives/style-map.js';
import type { SbbFormErrorElement } from '../../form-error.js';

import readme from './readme.md?raw';

import './form-field.js';
import '../form-field-clear.js';
import '../../button/mini-button.js';
Expand Down Expand Up @@ -103,9 +104,8 @@ const TemplateBasicTextarea = ({
placeholder=${placeholder}
?disabled=${disabled}
?readonly=${readonly}
>
${value}</textarea
>`;
.value=${value || nothing}
></textarea>`;

const TemplateInput = (args: Args): TemplateResult => formField(args, TemplateBasicInput(args));

Expand Down Expand Up @@ -262,9 +262,8 @@ const TemplateTextareaWithErrorSpace = (args: Args): TemplateResult => {
placeholder=${args.placeholder}
?disabled=${args.disabled}
?readonly=${args.readonly}
>
${args.value}</textarea
>
.value=${args.value || nothing}
></textarea>
${sbbFormError}`,
)}
</div>
Expand Down
Loading

0 comments on commit 6ed0752

Please sign in to comment.