diff --git a/.storybook/components/Footer.module.css b/.storybook/components/Footer.module.css new file mode 100644 index 00000000000..826bdfe48d4 --- /dev/null +++ b/.storybook/components/Footer.module.css @@ -0,0 +1,40 @@ +.footer { + container: footer / inline-size; +} + +.content { + min-height: var(--_ui5_bar_base_height); + display: flex; + align-items: center; + background-olor: var(--sapPageFooter_Background); + border-top: 0.0625rem solid var(--sapPageFooter_BorderColor); + position: absolute; + left: 0; + right: 0; + height: auto; + overflow: hidden; +} + +@container (max-width: 599px) { + .footer { + padding-inline: 1rem; + } +} + +@container (min-width: 600px) and (max-width: 1023px) { + .footer { + padding-inline: 2rem; + } +} + +@container (min-width: 1024px) and (max-width: 1439px) { + .footer { + padding-inline: 2rem; + } +} + +@container (min-width: 1440px) { + .footer { + padding-inline: 3rem; + } +} diff --git a/.storybook/components/Footer.tsx b/.storybook/components/Footer.tsx index 03d3d5b2ff5..1f3233f8c1e 100644 --- a/.storybook/components/Footer.tsx +++ b/.storybook/components/Footer.tsx @@ -9,38 +9,20 @@ import { PopoverPlacementType, WrappingType } from '@ui5/webcomponents-react'; -import { ThemingParameters, useResponsiveContentPadding } from '@ui5/webcomponents-react-base'; import React, { useRef } from 'react'; import BestRunLogo from '../../assets/SAP_Best_R_grad_blk_scrn.png'; +import classes from './Footer.module.css'; export const Footer = ({ style }) => { const popoverRef = useRef(null); const footerRef = useRef(null); - const responsivePaddingClass = useResponsiveContentPadding(footerRef.current); - const showPrivacyPopover = (e) => { popoverRef.current.showAt(e.target); }; return ( -