Skip to content

Commit d184d8e

Browse files
committed
Scrollbar always visible next appdir test setup
1 parent 128e672 commit d184d8e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test/integration/next-appdir/app/layout.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,22 @@ const brandTop = <>INTITULE<br />OFFICIEL</>;
1717
const homeLinkPops = { "href": "/", "title": "Accueil - Nom de l’entité (ministère, secrétariat d‘état, gouvernement)" };
1818

1919
declare module "@codegouvfr/react-dsfr/gdpr" {
20-
interface RegisterGdprServices {
21-
matomo: never;
22-
}
20+
interface RegisterGdprServices {
21+
matomo: never;
22+
}
2323
}
2424

2525
export default function RootLayout({ children }: { children: JSX.Element; }) {
2626

2727
return (
28-
<html {...getColorSchemeHtmlAttributes({ defaultColorScheme })} >
28+
<html
29+
{...getColorSchemeHtmlAttributes({ defaultColorScheme })}
30+
//NOTE: Scrollbar always visible to avoid layout shift when modal are opened
31+
style={{
32+
"overflow": "-moz-scrollbars-vertical",
33+
"overflowY": "scroll"
34+
}}
35+
>
2936
<head>
3037
<title>Next 13 AppDir Demo DSFR setup</title>
3138
<StartDsfr />
@@ -53,7 +60,7 @@ export default function RootLayout({ children }: { children: JSX.Element; }) {
5360
}}
5461
>
5562
<DsfrProvider defaultColorScheme={defaultColorScheme}>
56-
<ConsentBanner gdprLinkProps={{href: "/mui"}} siteName='Next Test App' services={[
63+
<ConsentBanner gdprLinkProps={{ href: "/mui" }} siteName='Next Test App' services={[
5764
{
5865
name: "matomo",
5966
title: "Matomo",

0 commit comments

Comments
 (0)