diff --git a/ngx-fudis/projects/dev/src/app/components/formExamples.component.html b/ngx-fudis/projects/dev/src/app/components/formExamples.component.html index e695c2b41..b94c49f9c 100644 --- a/ngx-fudis/projects/dev/src/app/components/formExamples.component.html +++ b/ngx-fudis/projects/dev/src/app/components/formExamples.component.html @@ -13,7 +13,7 @@ [errorSummaryVisible]="errorSummaryVisible" [title]="'Form title here hello'" [errorSummaryHelpText]="'There were some errors'" - [titleLevel]="2" + [level]="2" > diff --git a/ngx-fudis/projects/dev/src/app/dialog-test/dialog-test-content/dialog-test-form.component.ts b/ngx-fudis/projects/dev/src/app/dialog-test/dialog-test-content/dialog-test-form.component.ts index ad64ba0d7..fdddd37b5 100644 --- a/ngx-fudis/projects/dev/src/app/dialog-test/dialog-test-content/dialog-test-form.component.ts +++ b/ngx-fudis/projects/dev/src/app/dialog-test/dialog-test-content/dialog-test-form.component.ts @@ -23,7 +23,7 @@ type MyForm = { [errorSummaryLinkType]="'onClick'" [title]="'Dialog with fudis-form'" [errorSummaryHelpText]="'You did not fill all the required information'" - [titleLevel]="2" + [level]="2" > diff --git a/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.docs.mdx b/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.docs.mdx index e62ce288a..ce11d8e37 100644 --- a/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.docs.mdx +++ b/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.docs.mdx @@ -165,7 +165,7 @@ class SimpleDialogComponent { ## Fudis Form inside Dialog -When using Form inside Dialog, wrap the Form inside `fudis-dialog-content` and use it normally. Meaning, add all the necessary Error Summary properties, such as `errorSummaryLinkType` and `errorSummaryHelpText`. Also add `title` and `titleLevel`, this title will be the title of the dialog and have initial focus when dialog is opened with keyboard. +When using Form inside Dialog, wrap the Form inside `fudis-dialog-content` and use it normally. Meaning, add all the necessary Error Summary properties, such as `errorSummaryLinkType` and `errorSummaryHelpText`. Also add `title` and `level`, this title will be the title of the dialog and have initial focus when dialog is opened with keyboard. In `fudisContent` template add form components and in `fudisActions` template add action button(s). Unlike normal form, where buttons are positioned on top of the form, **these action buttons will be positioned at the bottom** after the form content, in order to follow dialog look and feel. @@ -181,7 +181,7 @@ In `fudisContent` template add form components and in `fudisActions` template ad [title]="'Dialog with fudis-form'" - [titleLevel]="2" + [level]="2" [errorSummaryLinkType]="'href'" [errorSummaryHelpText]="'You need to fill up the information.'"> diff --git a/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.stories.ts b/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.stories.ts index b6b876df8..60ec3ee1b 100644 --- a/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.stories.ts +++ b/ngx-fudis/projects/ngx-fudis/src/lib/components/dialog/dialog.stories.ts @@ -65,7 +65,7 @@ class DialogLaucherComponent { diff --git a/ngx-fudis/projects/ngx-fudis/src/lib/components/form/error-summary/error-summary.component.spec.ts b/ngx-fudis/projects/ngx-fudis/src/lib/components/form/error-summary/error-summary.component.spec.ts index 8fd378a87..b51d7a5b5 100644 --- a/ngx-fudis/projects/ngx-fudis/src/lib/components/form/error-summary/error-summary.component.spec.ts +++ b/ngx-fudis/projects/ngx-fudis/src/lib/components/form/error-summary/error-summary.component.spec.ts @@ -37,7 +37,7 @@ import { LinkDirective } from '../../../directives/link/link.directive'; selector: 'fudis-mock-form-component', template: `
- +
{{ title }} - {{ title }} diff --git a/ngx-fudis/projects/ngx-fudis/src/lib/components/form/form/form.stories.ts b/ngx-fudis/projects/ngx-fudis/src/lib/components/form/form/form.stories.ts index db4f55b5a..d3a4f1837 100644 --- a/ngx-fudis/projects/ngx-fudis/src/lib/components/form/form/form.stories.ts +++ b/ngx-fudis/projects/ngx-fudis/src/lib/components/form/form/form.stories.ts @@ -35,7 +35,7 @@ import { FudisErrorSummaryService } from '../../../services/form/error-summary/e />