From 6a4d14b178fc00de989b4a2758f2a1e4adf5ed33 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 22 May 2026 17:06:59 +0200 Subject: [PATCH] [Accessibility] Fix heading level gaps (#39149) --- app/javascript/mastodon/components/status.jsx | 4 +- .../mastodon/features/about/index.jsx | 3 +- .../components/collection_lockup.tsx | 4 +- .../collections/components/share_modal.tsx | 2 +- .../components/inline_follow_suggestions.tsx | 4 +- .../navigation_panel/components/trends.tsx | 8 +-- .../components/notification_admin_report.tsx | 4 +- .../components/notification_collection.tsx | 4 +- .../notification_group_with_status.tsx | 4 +- .../components/notification_with_status.tsx | 4 +- .../status/components/detailed_status.tsx | 12 +++- .../styles/mastodon/components.scss | 58 +++++++++---------- 12 files changed, 61 insertions(+), 50 deletions(-) diff --git a/app/javascript/mastodon/components/status.jsx b/app/javascript/mastodon/components/status.jsx index c909f9f0b1..808f4d73bf 100644 --- a/app/javascript/mastodon/components/status.jsx +++ b/app/javascript/mastodon/components/status.jsx @@ -556,7 +556,7 @@ class Status extends ImmutablePureComponent { ).find((item) => compareUrls(item.get('url'), cardUrl)); if (taggedCollection) { - media = ; + media = ; } else { media = ( + ); } } diff --git a/app/javascript/mastodon/features/about/index.jsx b/app/javascript/mastodon/features/about/index.jsx index 01ae0b16a3..85b76aee32 100644 --- a/app/javascript/mastodon/features/about/index.jsx +++ b/app/javascript/mastodon/features/about/index.jsx @@ -18,6 +18,7 @@ import { LinkFooter} from 'mastodon/features/ui/components/link_footer'; import { Section } from './components/section'; import { RulesSection } from './components/rules'; +import { getColumnSkipLinkId } from '../ui/components/skip_links'; const messages = defineMessages({ title: { id: 'column.about', defaultMessage: 'About' }, @@ -80,7 +81,7 @@ class About extends PureComponent { return ( -
+
= ({ @@ -54,6 +55,7 @@ export const CollectionLockup: React.FC = ({ withAuthorHandle = true, withTimestamp, sideContent, + headingLevel = 'h3', className, }) => { const { id, name } = collection; @@ -70,7 +72,7 @@ export const CollectionLockup: React.FC = ({ sideContent={sideContent} >
- +
= ({ tabIndex={-1} >
-

+

-

+