Skip to content

Commit

Permalink
[PR feedback] Ensure footer is scrollable on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Nov 7, 2023
1 parent fa15cec commit 14a1726
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import { css } from '@emotion/react';
import { UseEuiTheme } from '../../services';
import { logicalCSS } from '../../global_styling';
import { logicalCSS, euiYScrollWithShadows } from '../../global_styling';

export const euiCollapsibleNavBodyStyles = {
// In case things get really dire responsively, ensure the footer doesn't overtake the body
Expand All @@ -34,11 +34,13 @@ export const euiCollapsibleNavBodyStyles = {
`,
};

export const euiCollapsibleNavFooterStyles = ({ euiTheme }: UseEuiTheme) => {
export const euiCollapsibleNavFooterStyles = (euiThemeContext: UseEuiTheme) => {
const { euiTheme } = euiThemeContext;
return {
euiCollapsibleNav__footer: css`
background-color: ${euiTheme.colors.emptyShade};
${logicalCSS('border-top', euiTheme.border.thin)}
${euiYScrollWithShadows(euiThemeContext, { side: 'end' })}
`,
};
};

0 comments on commit 14a1726

Please sign in to comment.