File tree 4 files changed +21
-4
lines changed
4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @codegouvfr/react-dsfr" ,
3
- "version" : " 1.20.2 " ,
3
+ "version" : " 1.20.4 " ,
4
4
"description" : " French State Design System React integration library" ,
5
5
"repository" : {
6
6
"type" : " git" ,
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 @@ -174,10 +174,12 @@ export const Tile = memo(
174
174
</ HtmlTitleTag >
175
175
176
176
{ desc !== undefined && (
177
- < p className = { cx ( fr . cx ( "fr-tile__desc" ) , classes . desc ) } > { desc } </ p >
177
+ < div className = { cx ( fr . cx ( "fr-tile__desc" ) , classes . desc ) } > { desc } </ div >
178
178
) }
179
179
{ detail !== undefined && (
180
- < p className = { cx ( fr . cx ( "fr-tile__detail" ) , classes . detail ) } > { detail } </ p >
180
+ < div className = { cx ( fr . cx ( "fr-tile__detail" ) , classes . detail ) } >
181
+ { detail }
182
+ </ div >
181
183
) }
182
184
{ start !== undefined && (
183
185
< div className = { cx ( fr . cx ( "fr-tile__start" ) , classes . start ) } >
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