diff --git a/src-docs/src/views/theme/color/_color_js.tsx b/src-docs/src/views/theme/color/_color_js.tsx index b7d527f52c0..fa79a80d170 100644 --- a/src-docs/src/views/theme/color/_color_js.tsx +++ b/src-docs/src/views/theme/color/_color_js.tsx @@ -292,7 +292,7 @@ export const UtilsJS = () => { } example={

- {useEuiBackgroundColorCSS().accent} + background-color: {useEuiBackgroundColor('accent')}

} snippetLanguage="tsx" diff --git a/src-docs/src/views/theme/sizing/_sizing_js.tsx b/src-docs/src/views/theme/sizing/_sizing_js.tsx index da681d7c2f6..5318b809aef 100644 --- a/src-docs/src/views/theme/sizing/_sizing_js.tsx +++ b/src-docs/src/views/theme/sizing/_sizing_js.tsx @@ -295,7 +295,9 @@ side?: '${LOGICAL_SIDES.join("' | '")}';`} useEuiPaddingCSS('left').l, ]} > - {useEuiPaddingCSS('left').l} + + {logicals['padding-left']}: {useEuiPaddingSize('l')} +

} snippetLanguage="tsx" diff --git a/src/components/call_out/__snapshots__/call_out.test.tsx.snap b/src/components/call_out/__snapshots__/call_out.test.tsx.snap index 63a232c6134..02f4430b227 100644 --- a/src/components/call_out/__snapshots__/call_out.test.tsx.snap +++ b/src/components/call_out/__snapshots__/call_out.test.tsx.snap @@ -3,11 +3,11 @@ exports[`EuiCallOut is rendered 1`] = `
`; exports[`EuiCallOut props color primary is rendered 1`] = `
`; exports[`EuiCallOut props color success is rendered 1`] = `
`; exports[`EuiCallOut props color warning is rendered 1`] = `
`; exports[`EuiCallOut props heading h1 is rendered 1`] = `
`; exports[`EuiCallOut props heading h2 is rendered 1`] = `
`; exports[`EuiCallOut props heading h3 is rendered 1`] = `
`; exports[`EuiCallOut props heading h4 is rendered 1`] = `
`; exports[`EuiCallOut props heading h5 is rendered 1`] = `
`; exports[`EuiCallOut props heading h6 is rendered 1`] = `
`; exports[`EuiCallOut props heading p is rendered 1`] = `
`; exports[`EuiCallOut props iconType is rendered 1`] = `
`; exports[`EuiCallOut props title is rendered 1`] = `

{ ${logicalCSS('margin-right', euiTheme.size.s)}; `, euiCallOut__description: css` - ${logicalCSS('margin-top', euiTheme.size.s)}; + :not(:only-child) { + ${logicalCSS('margin-top', euiTheme.size.s)}; + } `, }; }; diff --git a/src/components/card/__snapshots__/card.test.tsx.snap b/src/components/card/__snapshots__/card.test.tsx.snap index e7761b33345..48a16f285e2 100644 --- a/src/components/card/__snapshots__/card.test.tsx.snap +++ b/src/components/card/__snapshots__/card.test.tsx.snap @@ -2,7 +2,7 @@ exports[`EuiCard betaBadgeProps renders href 1`] = `
+
+ + Card title + +
+

+ Card description +

+
+
+
+`; + +exports[`EuiCard props paddingSize xl is rendered 1`] = ` +
+
+ + Card title + +
+

+ Card description +

+
+
+
+`; + +exports[`EuiCard props paddingSize xs is rendered 1`] = ` +
{ test('is rendered', () => { @@ -224,7 +224,7 @@ describe('EuiCard', () => { }); describe('paddingSize', () => { - SIZES.forEach((size) => { + PANEL_SIZES.forEach((size) => { test(`${size} is rendered`, () => { const component = render(