Skip to content

Commit c474413

Browse files
feat(eui): remove xl size from EuiTabs
1 parent be04a2c commit c474413

3 files changed

Lines changed: 1 addition & 12 deletions

File tree

packages/eui/src/components/tabs/tab.styles.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,5 @@ export const euiTabContentStyles = (euiThemeContext: UseEuiTheme) => {
9999
(x, y) => x + y
100100
)};
101101
`,
102-
xl: css`
103-
font-size: ${euiFontSize(euiThemeContext, 'l').fontSize};
104-
line-height: ${mathWithUnits(
105-
[euiTheme.size.xxxl, euiTheme.size.s],
106-
(x, y) => x + y
107-
)};
108-
`,
109102
};
110103
};

packages/eui/src/components/tabs/tabs.styles.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,5 @@ export const euiTabsStyles = (euiThemeContext: UseEuiTheme) => {
3939
l: css`
4040
gap: ${euiTheme.size.l};
4141
`,
42-
xl: css`
43-
gap: ${euiTheme.size.xl};
44-
`,
4542
};
4643
};

packages/eui/src/components/tabs/tabs.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { CommonProps } from '../common';
1919
import { euiTabsStyles } from './tabs.styles';
2020
import { EuiTabsContext } from './tabs_context';
2121

22-
export const SIZES = ['s', 'm', 'l', 'xl'] as const;
22+
export const SIZES = ['s', 'm', 'l'] as const;
2323
export type EuiTabsSizes = (typeof SIZES)[number];
2424

2525
export type EuiTabsProps = HTMLAttributes<HTMLDivElement> &
@@ -40,7 +40,6 @@ export type EuiTabsProps = HTMLAttributes<HTMLDivElement> &
4040
bottomBorder?: boolean;
4141
/**
4242
* Sizes affect both font size and overall size.
43-
* Only use the `xl` size when displayed as page titles.
4443
*/
4544
size?: EuiTabsSizes;
4645
};

0 commit comments

Comments
 (0)