From 7519ef2fa116bcc7577483900379e497d7878a9e Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sat, 10 Aug 2024 05:12:47 -0400 Subject: [PATCH] Use material symbol for responsive menu toggle (#31362) --- app/javascript/styles/mastodon/admin.scss | 6 +++--- app/views/layouts/admin.html.haml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss index 045a435de27..61e949b27b7 100644 --- a/app/javascript/styles/mastodon/admin.scss +++ b/app/javascript/styles/mastodon/admin.scss @@ -65,16 +65,16 @@ $content-width: 840px; background: $ui-base-color; } - .fa-times { + .material-close { display: none; } &.active { - .fa-times { + .material-close { display: block; } - .fa-bars { + .material-menu { display: none; } } diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index d725e65aa9f..ebd236c6288 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -17,8 +17,8 @@ = logo_as_symbol(:wordmark) = link_to '#', class: 'sidebar__toggle__icon', 'aria-label': t('navigation.toggle_menu'), 'aria-expanded': 'false' do - = fa_icon 'bars' - = fa_icon 'times' + = material_symbol 'menu' + = material_symbol 'close' = render_navigation