diff --git a/src/components/dialog/dialog-actions/dialog-actions.spec.ts b/src/components/dialog/dialog-actions/dialog-actions.spec.ts index 97493b1e16..f5b88d23d7 100644 --- a/src/components/dialog/dialog-actions/dialog-actions.spec.ts +++ b/src/components/dialog/dialog-actions/dialog-actions.spec.ts @@ -1,7 +1,7 @@ -import { expect, fixture } from '@open-wc/testing'; +import { expect } from '@open-wc/testing'; import { html } from 'lit/static-html.js'; -import { testA11yTreeSnapshot } from '../../core/testing/a11y-tree-snapshot'; +import { fixture, testA11yTreeSnapshot } from '../../core/testing/private'; import './dialog-actions'; describe('sbb-dialog-actions', () => { diff --git a/src/components/dialog/dialog-actions/dialog-actions.ts b/src/components/dialog/dialog-actions/dialog-actions.ts index a4d37292e9..207193734f 100644 --- a/src/components/dialog/dialog-actions/dialog-actions.ts +++ b/src/components/dialog/dialog-actions/dialog-actions.ts @@ -3,7 +3,7 @@ import { html } from 'lit'; import { customElement } from 'lit/decorators.js'; import { SbbActionGroupElement } from '../../action-group'; -import { hostAttributes } from '../../core/common-behaviors'; +import { hostAttributes } from '../../core/decorators'; import style from './dialog-actions.scss?lit&inline'; diff --git a/src/components/dialog/dialog-content/dialog-content.ts b/src/components/dialog/dialog-content/dialog-content.ts index 0692f98436..aa14037fce 100644 --- a/src/components/dialog/dialog-content/dialog-content.ts +++ b/src/components/dialog/dialog-content/dialog-content.ts @@ -2,7 +2,7 @@ import type { CSSResultGroup, TemplateResult } from 'lit'; import { html, LitElement } from 'lit'; import { customElement } from 'lit/decorators.js'; -import { hostAttributes } from '../../core/common-behaviors'; +import { hostAttributes } from '../../core/decorators'; import style from './dialog-content.scss?lit&inline'; diff --git a/src/components/dialog/dialog-title/dialog-title.spec.ts b/src/components/dialog/dialog-title/dialog-title.spec.ts index 043afdb68a..78f3db9608 100644 --- a/src/components/dialog/dialog-title/dialog-title.spec.ts +++ b/src/components/dialog/dialog-title/dialog-title.spec.ts @@ -1,7 +1,7 @@ -import { expect, fixture } from '@open-wc/testing'; +import { expect } from '@open-wc/testing'; import { html } from 'lit/static-html.js'; -import { testA11yTreeSnapshot } from '../../core/testing/a11y-tree-snapshot'; +import { fixture, testA11yTreeSnapshot } from '../../core/testing/private'; import './dialog-title'; describe('sbb-dialog-title', () => { diff --git a/src/components/dialog/dialog-title/dialog-title.ts b/src/components/dialog/dialog-title/dialog-title.ts index 1190d4e799..6035f71b87 100644 --- a/src/components/dialog/dialog-title/dialog-title.ts +++ b/src/components/dialog/dialog-title/dialog-title.ts @@ -3,8 +3,9 @@ import { nothing } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import { html, unsafeStatic } from 'lit/static-html.js'; -import { FocusVisibleWithinController } from '../../core/a11y'; -import { LanguageController, hostAttributes } from '../../core/common-behaviors'; +import { SbbFocusVisibleWithinController } from '../../core/a11y'; +import { SbbLanguageController } from '../../core/controllers'; +import { hostAttributes } from '../../core/decorators'; import type { Breakpoint } from '../../core/dom'; import { EventEmitter } from '../../core/eventing'; import { i18nCloseDialog, i18nGoBack } from '../../core/i18n'; @@ -63,7 +64,7 @@ export class SbbDialogTitleElement extends SbbTitleElement { this, SbbDialogTitleElement.events.backClick, ); - private _language = new LanguageController(this); + private _language = new SbbLanguageController(this); public constructor() { super(); @@ -73,7 +74,7 @@ export class SbbDialogTitleElement extends SbbTitleElement { public override connectedCallback(): void { super.connectedCallback(); - new FocusVisibleWithinController(this); + new SbbFocusVisibleWithinController(this); } protected override willUpdate(changedProperties: PropertyValues): void { diff --git a/src/components/dialog/dialog/dialog.e2e.ts b/src/components/dialog/dialog/dialog.e2e.ts index b10f34a2bb..57d09543ab 100644 --- a/src/components/dialog/dialog/dialog.e2e.ts +++ b/src/components/dialog/dialog/dialog.e2e.ts @@ -42,7 +42,7 @@ describe('sbb-dialog', () => { Action group `); - ariaLiveRef = element.shadowRoot!.querySelector('sbb-screenreader-only')!; + ariaLiveRef = element.shadowRoot!.querySelector('sbb-screen-reader-only')!; }); it('renders', () => { diff --git a/src/components/dialog/dialog/dialog.spec.ts b/src/components/dialog/dialog/dialog.spec.ts index da6d399878..f85a75bf1c 100644 --- a/src/components/dialog/dialog/dialog.spec.ts +++ b/src/components/dialog/dialog/dialog.spec.ts @@ -7,7 +7,7 @@ import { fixture, testA11yTreeSnapshot } from '../../core/testing/private'; import type { SbbDialogElement } from './dialog'; import './dialog'; import '../dialog-title'; -import '../dialog-content/dialog'; +import '../dialog-content'; describe(`sbb-dialog`, () => { describe('renders an open dialog', async () => { diff --git a/src/components/dialog/dialog/dialog.stories.ts b/src/components/dialog/dialog/dialog.stories.ts index 4cd4a66319..1b2ecc65ef 100644 --- a/src/components/dialog/dialog/dialog.stories.ts +++ b/src/components/dialog/dialog/dialog.stories.ts @@ -14,9 +14,10 @@ import type { TemplateResult } from 'lit'; import { html, nothing } from 'lit'; import { styleMap } from 'lit/directives/style-map.js'; +import { sbbSpread } from '../../../storybook/helpers/spread'; import { waitForComponentsReady } from '../../../storybook/testing/wait-for-components-ready'; import { waitForStablePosition } from '../../../storybook/testing/wait-for-stable-position'; -import { sbbSpread, breakpoints } from '../../core/dom'; +import { breakpoints } from '../../core/dom/breakpoint'; import sampleImages from '../../core/images'; import type { SbbTitleLevel } from '../../title'; import { SbbDialogTitleElement } from '../dialog-title'; @@ -331,10 +332,12 @@ const FormTemplate = ({ method and returning the form values to update the details.
e.preventDefault()}> - + + - + + - + +