diff --git a/packages/react/src/components/header/components/headerActionBarItem/HeaderActionBarItem.module.scss b/packages/react/src/components/header/components/headerActionBarItem/HeaderActionBarItem.module.scss index 421d3f53a9..2dc194565f 100644 --- a/packages/react/src/components/header/components/headerActionBarItem/HeaderActionBarItem.module.scss +++ b/packages/react/src/components/header/components/headerActionBarItem/HeaderActionBarItem.module.scss @@ -1,5 +1,5 @@ -@use "../../Header.module.scss"; -@use "../../../../styles/common.scss"; +@use '../../Header.module.scss'; +@use '../../../../styles/common.scss'; button.actionBarItem { align-self: center; @@ -22,8 +22,8 @@ button.actionBarItem { height: var(--icon-size); margin: 0 auto; padding: 3px 0 0; - width: var(--icon-size); pointer-events: none; + width: var(--icon-size); & > svg { display: block; @@ -37,8 +37,8 @@ button.actionBarItem { display: block; font-size: var(--action-bar-item-title-font-size); margin: 0 auto; - white-space: nowrap; pointer-events: none; + white-space: nowrap; & > svg { display: block; diff --git a/packages/react/src/components/login/testUtils/oidcClientTestUtil.ts b/packages/react/src/components/login/testUtils/oidcClientTestUtil.ts index 10b7277702..94e0b50a33 100644 --- a/packages/react/src/components/login/testUtils/oidcClientTestUtil.ts +++ b/packages/react/src/components/login/testUtils/oidcClientTestUtil.ts @@ -19,7 +19,7 @@ import openIdConfiguration from '../__mocks__/openIdConfiguration.json'; import { UserCreationProps, createSignInResponse, createUserAndPlaceUserToStorage } from './userTestUtil'; import { Beacon, ConnectedModule, createBeacon } from '../beacon/beacon'; // eslint-disable-next-line jest/no-mocks-import -import { MockedWindowLocationActions } from '../__mocks__/mockWindowLocation'; +import { MockedWindowLocationActions } from '../../../utils/mockWindowLocation'; export type InitTestResult = { oidcClient: OidcClient; diff --git a/packages/react/src/utils/mockWindowLocation.ts b/packages/react/src/utils/mockWindowLocation.ts index fd9984d4fe..0f7c1dc595 100644 --- a/packages/react/src/utils/mockWindowLocation.ts +++ b/packages/react/src/utils/mockWindowLocation.ts @@ -6,7 +6,7 @@ export type MockedWindowLocationActions = { setUrl: (url: string) => void; }; export default function mockWindowLocation(): MockedWindowLocationActions { - const globalWin = (global as unknown) as Window; + const globalWin = global as unknown as Window; let oldWindowLocation: Location | undefined = globalWin.location; const unload = () => setTimeout(() => window.dispatchEvent(new Event('unload')), 20); @@ -37,7 +37,7 @@ export default function mockWindowLocation(): MockedWindowLocationActions { }); const getCalls = () => { - return (tracker.mock.calls as unknown) as string[]; + return tracker.mock.calls as unknown as string[]; }; return {