Skip to content

Commit

Permalink
fix(website): remove overflow on the main header element to fix the s…
Browse files Browse the repository at this point in the history
…earch popover being cut
  • Loading branch information
tkajtoch committed Oct 24, 2024
1 parent e8cc68e commit b23bbf3
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions packages/website/src/components/homepage/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const getStyles = (euiThemeContext: UseEuiTheme) => {
--hero-decor-fill-brand-poppy: #ff957d;
position: relative;
overflow: hidden auto;
display: flex;
flex-direction: column;
justify-content: center;
Expand Down Expand Up @@ -178,6 +177,14 @@ const getStyles = (euiThemeContext: UseEuiTheme) => {
}
`,
decor: {
wrapper: css`
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
`,
decor: css`
position: absolute;
top: 0;
Expand Down Expand Up @@ -216,11 +223,13 @@ export function HomepageHeader() {

return (
<header className={clsx('hero hero--primary')} css={styles.hero}>
<div css={[styles.decor.decor, styles.decor.left]}>
<DecorLeft />
</div>
<div css={[styles.decor.decor, styles.decor.right]}>
<DecorRight />
<div css={styles.decor.wrapper}>
<div css={[styles.decor.decor, styles.decor.left]}>
<DecorLeft />
</div>
<div css={[styles.decor.decor, styles.decor.right]}>
<DecorRight />
</div>
</div>
<HomepageContainer>
<div css={styles.left}>
Expand Down

0 comments on commit b23bbf3

Please sign in to comment.