diff --git a/src/components/Button/__tests__/Button.visual.test.tsx b/src/components/Button/__tests__/Button.visual.test.tsx index d714c4ce8d..a0299518d5 100644 --- a/src/components/Button/__tests__/Button.visual.test.tsx +++ b/src/components/Button/__tests__/Button.visual.test.tsx @@ -1,5 +1,7 @@ import React from 'react'; +import {test} from '~playwright/core'; + import { Default, Disabled, diff --git a/src/components/Table/__tests__/Table.test.tsx b/src/components/Table/__tests__/Table.test.tsx index 6afc06cd16..ea51de14d2 100644 --- a/src/components/Table/__tests__/Table.test.tsx +++ b/src/components/Table/__tests__/Table.test.tsx @@ -3,7 +3,8 @@ import React from 'react'; import userEvent from '@testing-library/user-event'; import {render, screen, within} from '../../../../test-utils/utils'; -import {Table, TableProps} from '../Table'; +import type {TableProps} from '../Table'; +import {Table} from '../Table'; import {columns, data} from './utils'; diff --git a/src/components/Table/hoc/withTableSettings/__tests__/withTableSettings.test.tsx b/src/components/Table/hoc/withTableSettings/__tests__/withTableSettings.test.tsx index 81aca1ad0b..5fa98bd9f1 100644 --- a/src/components/Table/hoc/withTableSettings/__tests__/withTableSettings.test.tsx +++ b/src/components/Table/hoc/withTableSettings/__tests__/withTableSettings.test.tsx @@ -3,8 +3,10 @@ import React from 'react'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import {Table, TableColumnConfig} from '../../../Table'; -import {TableSettingsData, withTableSettings} from '../withTableSettings'; +import type {TableColumnConfig} from '../../../Table'; +import {Table} from '../../../Table'; +import type {TableSettingsData} from '../withTableSettings'; +import {withTableSettings} from '../withTableSettings'; const item = {name: 'John Doe', occupation: 'Worker'}; diff --git a/src/components/controls/TextInput/TextInput.scss b/src/components/controls/TextInput/TextInput.scss index 2686a2760d..2a323cbafd 100644 --- a/src/components/controls/TextInput/TextInput.scss +++ b/src/components/controls/TextInput/TextInput.scss @@ -8,8 +8,10 @@ @include mixins.text-body-short; line-height: calc( - #{variables.$s-height} - - var(--g-text-input-border-width, #{control-variables.$border-width}) * + #{variables.$s-height} - var( + --g-text-input-border-width, + #{control-variables.$border-width} + ) * 2 ); padding-block: 0; @@ -20,8 +22,10 @@ @include mixins.text-body-short; line-height: calc( - #{variables.$m-height} - - var(--g-text-input-border-width, #{control-variables.$border-width}) * + #{variables.$m-height} - var( + --g-text-input-border-width, + #{control-variables.$border-width} + ) * 2 ); padding-block: 0; @@ -32,8 +36,10 @@ @include mixins.text-body-short; line-height: calc( - #{variables.$l-height} - - var(--g-text-input-border-width, #{control-variables.$border-width}) * + #{variables.$l-height} - var( + --g-text-input-border-width, + #{control-variables.$border-width} + ) * 2 ); padding-block: 0; @@ -44,8 +50,10 @@ @include mixins.text-body-2; line-height: calc( - #{variables.$xl-height} - - var(--g-text-input-border-width, #{control-variables.$border-width}) * + #{variables.$xl-height} - var( + --g-text-input-border-width, + #{control-variables.$border-width} + ) * 2 ); padding-block: 0;