Skip to content

Commit

Permalink
Merge branch 'main' into emotion/react-date-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Aug 1, 2024
2 parents e5d56b2 + 4eaf404 commit 8ec68e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/7935.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiEmptyPrompt` to correctly collapse and expand responsively when used with custom breakpoints larger than the default `xl` breakpoint
14 changes: 7 additions & 7 deletions packages/eui/src/components/empty_prompt/empty_prompt.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { css } from '@emotion/react';
import {
euiBreakpoint,
euiMinBreakpoint,
euiPaddingSize,
euiBorderColor,
logicalCSS,
Expand Down Expand Up @@ -45,14 +45,14 @@ export const euiEmptyPromptStyles = (euiThemeContext: UseEuiTheme) => {
text-align: center;
margin: auto;
${euiBreakpoint(euiThemeContext, ['l', 'xl'])} {
${euiMinBreakpoint(euiThemeContext, 'l')} {
/* the width becomes as wide as necessary to contain all of its contents */
${logicalCSS('max-width', 'max-content')}
}
`,
vertical: css``,
horizontal: css`
${euiBreakpoint(euiThemeContext, ['l', 'xl'])} {
${euiMinBreakpoint(euiThemeContext, 'l')} {
justify-content: flex-start;
text-align: start;
}
Expand All @@ -68,7 +68,7 @@ export const euiEmptyPromptStyles = (euiThemeContext: UseEuiTheme) => {
horizontal: css`
align-items: center;
${euiBreakpoint(euiThemeContext, ['l', 'xl'])} {
${euiMinBreakpoint(euiThemeContext, 'l')} {
flex-direction: row-reverse;
}
`,
Expand All @@ -83,7 +83,7 @@ export const euiEmptyPromptStyles = (euiThemeContext: UseEuiTheme) => {
margin: auto;
`,
horizontal: css`
${euiBreakpoint(euiThemeContext, ['l', 'xl'])} {
${euiMinBreakpoint(euiThemeContext, 'l')} {
padding-block: ${euiTheme.size.l};
padding-inline: 0;
}
Expand All @@ -105,7 +105,7 @@ export const euiEmptyPromptStyles = (euiThemeContext: UseEuiTheme) => {
${logicalCSS('margin-bottom', euiTheme.size.base)}
`,
horizontal: css`
${euiBreakpoint(euiThemeContext, ['l', 'xl'])} {
${euiMinBreakpoint(euiThemeContext, 'l')} {
${logicalCSS('min-width', '40%')}
${logicalCSS('max-width', '50%')}
Expand All @@ -123,7 +123,7 @@ export const euiEmptyPromptStyles = (euiThemeContext: UseEuiTheme) => {
euiEmptyPrompt__actions: css``,
vertical: css``,
horizontal: css`
${euiBreakpoint(euiThemeContext, ['l', 'xl'])} {
${euiMinBreakpoint(euiThemeContext, 'l')} {
justify-content: flex-start;
}
`,
Expand Down
10 changes: 8 additions & 2 deletions packages/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const config: Config = {
showReadingTime: true,
editUrl: 'https://github.com/elastic/eui/tree/main/website/',
},
googleTagManager: {
googleTagManager: googleTagManagerId && {
containerId: googleTagManagerId,
}
},
} satisfies Preset.Options,
],
],
Expand Down Expand Up @@ -104,6 +104,12 @@ const config: Config = {
position: 'right',
component: 'github',
},
{
href: 'https://www.figma.com/community/file/964536385682658129',
label: 'Figma',
position: 'right',
component: 'figma',
},
],
},
footer: {
Expand Down

0 comments on commit 8ec68e3

Please sign in to comment.