File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export const SideMenu = memo(
91
91
{ ...rest }
92
92
ref = { ref }
93
93
style = { style }
94
- aria-labelledby = { titleId }
94
+ { ... ( title !== undefined && { " aria-labelledby" : titleId } ) }
95
95
className = { cx (
96
96
fr . cx ( "fr-sidemenu" , {
97
97
"fr-sidemenu--right" : align === "right" ,
Original file line number Diff line number Diff line change @@ -307,3 +307,18 @@ export const SideMenuWith3Levels = getStory({
307
307
}
308
308
]
309
309
} ) ;
310
+
311
+ export const SideMenuWithNoTitle = getStory ( {
312
+ "burgerMenuButtonText" : "Dans cette rubrique" ,
313
+ "items" : [
314
+ {
315
+ "isActive" : true ,
316
+ "text" : "Accès direct" ,
317
+ "linkProps" : { "href" : "#" }
318
+ } ,
319
+ {
320
+ "text" : "Accès direct" ,
321
+ "linkProps" : { "href" : "#" }
322
+ }
323
+ ]
324
+ } ) ;
You can’t perform that action at this time.
0 commit comments