Skip to content

Commit 2d79696

Browse files
authored
Merge pull request #372 from material-components/fse/hamburger-fixes
Display active indicator inside drawer
2 parents 4d356e5 + 4191a3d commit 2d79696

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

theme/template-parts/blocks/navigation-link.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,13 @@ class="mdc-tab-indicator
109109
<?php else : ?>
110110
<a
111111
href="<?php echo esc_url( $attributes['url'] ); ?>"
112-
class="mdc-list-item"
113-
>
112+
class="mdc-list-item
113+
<?php
114+
if ( $is_active ) {
115+
echo 'mdc-list-item--activated';
116+
}
117+
?>
118+
">
114119
<span className="mdc-list-item__text">
115120
<?php echo wp_kses_post( $attributes['label'] ); ?>
116121
</span>

0 commit comments

Comments
 (0)