Skip to content

Commit ffbb1f9

Browse files
committed
fix: correcting arrows for pressed items drawer
1 parent ab49762 commit ffbb1f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/php/Component/Nav/toggle.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
'style' => 'basic',
88
'icon' => $expandIcon ?: 'expand_more',
99
'size' => 'md',
10-
'pressed' => $item['active'] ? 'true' : 'false',
10+
'pressed' => ($item['active'] || $item['ancestor']) ? 'true' : 'false',
1111
'attributeList' => [
1212
'aria-label' => $getExpandLabel($item['label'], $expandLabel),
13-
'aria-pressed' => $item['active'] ? 'true' : 'false'
13+
'aria-pressed' => ($item['active'] || $item['ancestor']) ? 'true' : 'false'
1414
]
1515
])
1616
@endbutton

0 commit comments

Comments
 (0)