From ee699278b8aeff4b4a1874b59554045c12f44f7c Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 18 Sep 2026 12:10:29 +0000 Subject: [PATCH] Redesign: Navigation link tweaks (#40585) --- .../components/menu/styles.module.scss | 5 +++ .../redesign/account_card_and_menu.tsx | 6 ++-- .../redesign/footer_links.module.scss | 5 +++ .../redesign/footer_links.tsx | 35 +++++++++++++------ .../navigation_panel/redesign/index.tsx | 17 ++++++--- .../ui/components/columns_area/redesign.tsx | 2 +- app/javascript/mastodon/locales/en.json | 4 +-- 7 files changed, 53 insertions(+), 21 deletions(-) diff --git a/app/javascript/mastodon/components/menu/styles.module.scss b/app/javascript/mastodon/components/menu/styles.module.scss index a5bf0ce0ea5..4b322a6a618 100644 --- a/app/javascript/mastodon/components/menu/styles.module.scss +++ b/app/javascript/mastodon/components/menu/styles.module.scss @@ -76,6 +76,11 @@ background-color: var(--color-bg-highlight); } + &[aria-current='page'] { + font-weight: bold; + background-color: var(--color-bg-highlight); + } + &:focus { // Override overeager global styles border-radius: var(--radius-3); diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/account_card_and_menu.tsx b/app/javascript/mastodon/features/navigation_panel/redesign/account_card_and_menu.tsx index 6185bf1e981..272604f833d 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/account_card_and_menu.tsx +++ b/app/javascript/mastodon/features/navigation_panel/redesign/account_card_and_menu.tsx @@ -113,7 +113,7 @@ export const AccountMenuItems: React.FC<{ <> {context === 'mobile' && } - + @@ -216,7 +216,7 @@ const ProfileMenuItem: React.FC = () => { const accountBasePath = `/@${account?.acct}`; return ( - + } className={classes.profileMenuItem} diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.module.scss b/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.module.scss index 0d6ba88380a..ab53695aa6f 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.module.scss +++ b/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.module.scss @@ -24,6 +24,11 @@ color: var(--color-text-secondary); text-decoration: underline; + &[aria-current='page'] { + color: var(--color-text-primary); + text-decoration: none; + } + &:hover, &:focus, &:active { diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.tsx b/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.tsx index c82efedf4cf..c0149d3923d 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.tsx +++ b/app/javascript/mastodon/features/navigation_panel/redesign/footer_links.tsx @@ -1,42 +1,57 @@ import { FormattedMessage } from 'react-intl'; -import { Link } from 'react-router-dom'; +import { NavLink } from 'react-router-dom'; import { domain, termsOfServiceEnabled } from '@/mastodon/initial_state'; import classes from './footer_links.module.scss'; -export const NavigationFooterLinks: React.FC<{ siteName?: string }> = ({ - siteName = domain, -}) => { +export const NavigationFooterLinks: React.FC<{ + siteName?: string; + multiColumn?: boolean; +}> = ({ siteName = domain, multiColumn }) => { + const multiColumnLinkAttrs = multiColumn + ? { + target: '_blank', + } + : undefined; + return (

{siteName}

  • - + - +
  • - + - +
  • {termsOfServiceEnabled && (
  • - + - +
  • )}
diff --git a/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx b/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx index 8bdd47341f1..6cd61227cd2 100644 --- a/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx +++ b/app/javascript/mastodon/features/navigation_panel/redesign/index.tsx @@ -83,7 +83,8 @@ export const RedesignNavigationPanel: React.FC<{ * menu items are hidden and the design is tweaked slightly */ mode?: 'static' | 'slide-out'; -}> = ({ siteName, mode = 'static' }) => { + multiColumn?: boolean; +}> = ({ siteName, mode = 'static', multiColumn }) => { const intl = useIntl(); const dispatch = useAppDispatch(); const { signedIn } = useIdentity(); @@ -174,7 +175,7 @@ export const RedesignNavigationPanel: React.FC<{ @@ -189,7 +190,7 @@ export const RedesignNavigationPanel: React.FC<{ > {customFeeds.map((feed) => ( @@ -271,14 +272,20 @@ export const RedesignNavigationPanel: React.FC<{ )} - + )} {!signedIn && (
- +
)} {bottomSensor} diff --git a/app/javascript/mastodon/features/ui/components/columns_area/redesign.tsx b/app/javascript/mastodon/features/ui/components/columns_area/redesign.tsx index b92d167618d..8ffe485fdf3 100644 --- a/app/javascript/mastodon/features/ui/components/columns_area/redesign.tsx +++ b/app/javascript/mastodon/features/ui/components/columns_area/redesign.tsx @@ -48,7 +48,7 @@ export const ColumnsAreaRedesign: React.FC<{ return (
- +
{children} diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json index da5328efee5..6ceb41f94df 100644 --- a/app/javascript/mastodon/locales/en.json +++ b/app/javascript/mastodon/locales/en.json @@ -1054,7 +1054,7 @@ "navigation_bar.saved_posts": "Saved Posts", "navigation_bar.search": "Search", "navigation_bar.search_trends": "Search / Trending", - "navigation_bar.sign_out": "Sign out", + "navigation_bar.sign_out": "Sign Out", "navigation_panel.collapse_followed_tags": "Collapse followed hashtags menu", "navigation_panel.collapse_lists": "Collapse list menu", "navigation_panel.expand_followed_tags": "Expand followed hashtags menu", @@ -1467,7 +1467,7 @@ "subscribed_languages.target": "Change subscribed languages for {target}", "tab_bar.messages": "Messages", "tabs_bar.account_settings": "Account settings", - "tabs_bar.create_custom_feed": "Create feed", + "tabs_bar.create_custom_feed": "Create Feed", "tabs_bar.custom_feeds": "Custom Feeds", "tabs_bar.custom_feeds_empty": "You have no custom feeds yet.", "tabs_bar.explore": "Explore",