Use material symbol for responsive menu toggle (#31362)
parent
caf0164f00
commit
7519ef2fa1
|
@ -65,16 +65,16 @@ $content-width: 840px;
|
||||||
background: $ui-base-color;
|
background: $ui-base-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-times {
|
.material-close {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
.fa-times {
|
.material-close {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fa-bars {
|
.material-menu {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
= logo_as_symbol(:wordmark)
|
= logo_as_symbol(:wordmark)
|
||||||
|
|
||||||
= link_to '#', class: 'sidebar__toggle__icon', 'aria-label': t('navigation.toggle_menu'), 'aria-expanded': 'false' do
|
= link_to '#', class: 'sidebar__toggle__icon', 'aria-label': t('navigation.toggle_menu'), 'aria-expanded': 'false' do
|
||||||
= fa_icon 'bars'
|
= material_symbol 'menu'
|
||||||
= fa_icon 'times'
|
= material_symbol 'close'
|
||||||
|
|
||||||
= render_navigation
|
= render_navigation
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue