From 4f037d0a7bf677c752b83b89c82775ab8361ef3b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 09:25:45 +0200 Subject: [PATCH 01/20] Update dependency simple-navigation to v4.5.0 (#39626) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Gemfile.lock | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 79c65b896f..926c299cb1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -354,7 +354,7 @@ GEM azure-blob (~> 0.5.2) hashie (~> 5.0) jmespath (1.6.2) - json (2.19.9) + json (2.20.0) json-canonicalization (1.0.0) json-jwt (1.17.1) activesupport (>= 4.2) @@ -832,9 +832,10 @@ GEM concurrent-ruby (~> 1.0, >= 1.0.5) sidekiq (>= 7.0.0, < 9.0.0) thor (>= 1.0, < 3.0) - simple-navigation (4.4.1) - activesupport (>= 2.3.2) - ostruct + simple-navigation (4.5.0) + activesupport (>= 6.1.0) + json + zeitwerk simple_form (5.4.1) actionpack (>= 7.0) activemodel (>= 7.0) From 28ad15a4317cc52143f5fb726428c3348553b40d Mon Sep 17 00:00:00 2001 From: Echo Date: Fri, 26 Jun 2026 10:39:17 +0200 Subject: [PATCH 02/20] Re-add missing prop to emoji picker (#39629) --- app/javascript/mastodon/features/emoji/emoji_picker.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/features/emoji/emoji_picker.tsx b/app/javascript/mastodon/features/emoji/emoji_picker.tsx index 2e4441e4d0..2092a2f47a 100644 --- a/app/javascript/mastodon/features/emoji/emoji_picker.tsx +++ b/app/javascript/mastodon/features/emoji/emoji_picker.tsx @@ -60,6 +60,7 @@ export const Emoji: FC = ({ sheetSize={sheetSize} skin={1} tooltip={false} + forceSize={false} {...{ useButton: true }} {...props} /> From 79c5ed12031bdbdc3943c7ab38418e3963567439 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 26 Jun 2026 10:42:49 +0200 Subject: [PATCH 03/20] Fix visible transparent navigation link borders in Windows forced-contrast mode (#39614) --- app/javascript/styles/mastodon/components.scss | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 3f50a1028d..da1f92cfef 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -4091,9 +4091,8 @@ a.account__display-name { align-items: center; gap: 8px; width: 100%; - padding: 10px; - padding-inline-start: 14px; - overflow: hidden; + padding: 12px; + padding-inline-start: 16px; font-size: 16px; font-weight: 400; text-decoration: none; @@ -4104,7 +4103,7 @@ a.account__display-name { var(--color-text-secondary) ); background: transparent; - border: 2px solid transparent; + border: none; border-radius: 4px; &:hover, @@ -4118,14 +4117,14 @@ a.account__display-name { } &:focus-visible { - outline: none; - border-color: var(--color-border-brand); + outline: var(--outline-focus-default); + outline-offset: -2px; background: var(--color-bg-brand-softest); } &--logo { - padding: 8px; - padding-inline-start: 12px; + padding: 10px; + padding-inline-start: 14px; } } From 1703d48be2575e591110618baa71e0f54df14a79 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 26 Jun 2026 10:59:16 +0200 Subject: [PATCH 04/20] Remove redundant accessibility patch for `simple-navigation` (#39630) --- app/javascript/entrypoints/public.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/javascript/entrypoints/public.tsx b/app/javascript/entrypoints/public.tsx index 5563b8324e..848e600895 100644 --- a/app/javascript/entrypoints/public.tsx +++ b/app/javascript/entrypoints/public.tsx @@ -522,14 +522,6 @@ on('click', '.rules-list button', ({ target }) => { * don't produce accessible markup (simple-forms & simple-navigation) */ function applyRailsA11yPatches() { - /** - * Mark current navigation item with aria-current - */ - const activeNavLink = document.querySelector( - '.simple-navigation-active-leaf a.selected', - ); - activeNavLink?.setAttribute('aria-current', 'page'); - /** * Hides the asterisk added to labels of required form fields * from assistive tech. (Those fields already have the `required` attribute) From 2ca8dfd2ffdd2b8e9b457246e03748862f9b2429 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:15:21 +0200 Subject: [PATCH 05/20] Update Node.js to 24.18 (#39580) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .nvmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nvmrc b/.nvmrc index 93b18eeec5..82d5d71434 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -24.17 +24.18 From 41982dac4542f2d703fed644e709427681077306 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 11:15:32 +0200 Subject: [PATCH 06/20] Update dependency axios to v1.18.1 (#39578) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 8c4c8aa3b3..f746ebcd8a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5960,14 +5960,14 @@ __metadata: linkType: hard "axios@npm:^1.4.0": - version: 1.18.0 - resolution: "axios@npm:1.18.0" + version: 1.18.1 + resolution: "axios@npm:1.18.1" dependencies: follow-redirects: "npm:^1.16.0" form-data: "npm:^4.0.5" https-proxy-agent: "npm:^5.0.1" proxy-from-env: "npm:^2.1.0" - checksum: 10c0/f88aae13fd9dd395dea3053c7299178fee62f436f20424a1d6d79ec11ffb7656ba664b4630defbadab2c387b6ea07e29afb9f28b26d8e0e49d45be766983290d + checksum: 10c0/9d9378a3af0d0ad730a52ad9d15ec7201f3926ad6e7e8bbffc5ae21ca2835ad11d1d9598698f5dd9718917486039f55ea1d7dc23d8e44fa827a55cc3262c02fc languageName: node linkType: hard From 296750204abf9ea159395a0c991e7ebd6a445907 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 26 Jun 2026 11:24:51 +0200 Subject: [PATCH 07/20] Replace react-overlays with Floating UI (#39621) --- .../components/account_header/name.tsx | 23 +- .../components/alt_text_badge/index.tsx | 35 ++- .../mastodon/components/autosuggest_input.jsx | 16 +- .../components/autosuggest_textarea.jsx | 25 ++- .../mastodon/components/dropdown/index.tsx | 38 ++-- .../mastodon/components/dropdown/utils.ts | 17 -- .../mastodon/components/dropdown_menu.tsx | 47 ++-- .../components/form_fields/combobox_field.tsx | 86 ++++---- .../components/hover_card_controller.tsx | 24 +-- .../mastodon/components/learn_more_link.tsx | 21 +- .../mastodon/components/popover/index.tsx | 203 ++++++++++++++++++ .../mastodon/components/popover/portal.tsx | 21 ++ .../components/status/boost_button.tsx | 2 +- .../status_action_bar/remove_quote_hint.tsx | 25 +-- .../account_edit/components/image_edit.tsx | 6 +- .../account_timeline/components/filters.tsx | 30 +-- .../alt_text_modal/components/info_button.tsx | 22 +- .../components/emoji_picker_dropdown.jsx | 70 ++---- .../compose/components/language_dropdown.tsx | 66 ++---- .../compose/components/privacy_dropdown.tsx | 27 +-- .../components/select_with_label.tsx | 70 +++--- .../features/ui/components/boost_modal.tsx | 9 - .../ui/components/hashtag_menu_controller.tsx | 45 ++-- .../mastodon/hooks/useOnClickOutside.ts | 62 +++--- .../styles/mastodon/components.scss | 8 +- package.json | 2 +- yarn.lock | 115 ++++------ 27 files changed, 587 insertions(+), 528 deletions(-) delete mode 100644 app/javascript/mastodon/components/dropdown/utils.ts create mode 100644 app/javascript/mastodon/components/popover/index.tsx create mode 100644 app/javascript/mastodon/components/popover/portal.tsx diff --git a/app/javascript/mastodon/components/account_header/name.tsx b/app/javascript/mastodon/components/account_header/name.tsx index e66affae1b..4b6f9d1b44 100644 --- a/app/javascript/mastodon/components/account_header/name.tsx +++ b/app/javascript/mastodon/components/account_header/name.tsx @@ -1,12 +1,10 @@ -import { useCallback, useId, useRef, useState } from 'react'; +import { useCallback, useId, useState } from 'react'; import type { FC } from 'react'; import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import classNames from 'classnames'; -import Overlay from 'react-overlays/esm/Overlay'; - import { useAccount } from '@/mastodon/hooks/useAccount'; import { useRelationship } from '@/mastodon/hooks/useRelationship'; import { useAppSelector } from '@/mastodon/store'; @@ -20,6 +18,7 @@ import { CopyButton } from '../copy_button'; import { DisplayName } from '../display_name'; import { Icon } from '../icon'; import { NavigationFocusTarget } from '../navigation_focus_target'; +import { Popover } from '../popover'; import { AccountBadges } from './badges'; import classes from './styles.module.scss'; @@ -82,7 +81,8 @@ const AccountNameHelp: FC<{ const accessibilityId = useId(); const intl = useIntl(); const [open, setOpen] = useState(false); - const triggerRef = useRef(null); + const [triggerElement, setTriggerElement] = + useState(null); const handleClick = useCallback(() => { setOpen((prev) => !prev); @@ -94,7 +94,7 @@ const AccountNameHelp: FC<{ <> - } - onHide={handleClick} - offset={[5, 5]} + {({ props }) => (
)} -
+ ); }; diff --git a/app/javascript/mastodon/components/alt_text_badge/index.tsx b/app/javascript/mastodon/components/alt_text_badge/index.tsx index 535ba3d1b6..64e120ea4f 100644 --- a/app/javascript/mastodon/components/alt_text_badge/index.tsx +++ b/app/javascript/mastodon/components/alt_text_badge/index.tsx @@ -4,22 +4,14 @@ import { FormattedMessage, useIntl } from 'react-intl'; import classNames from 'classnames'; -import type { - OffsetValue, - UsePopperOptions, -} from 'react-overlays/esm/usePopper'; -import Overlay from 'react-overlays/Overlay'; - import CloseIcon from '@/material-icons/400-24px/close.svg?react'; import { useSelectableClick } from 'mastodon/hooks/useSelectableClick'; import { IconButton } from '../icon_button'; +import { Popover } from '../popover'; import classes from './styles.module.scss'; -const offset = [0, 4] as OffsetValue; -const popperConfig = { strategy: 'fixed' } as UsePopperOptions; - export const AltTextBadge: React.FC<{ description: string; className?: string; @@ -28,7 +20,9 @@ export const AltTextBadge: React.FC<{ const uniqueId = useId(); const popoverId = `${uniqueId}-popover`; const titleId = `${uniqueId}-title`; - const buttonRef = useRef(null); + const [buttonElement, setButtonElement] = useState( + null, + ); const popoverRef = useRef(null); const [open, setOpen] = useState(false); @@ -41,8 +35,8 @@ export const AltTextBadge: React.FC<{ const handleClose = useCallback(() => { setOpen(false); - buttonRef.current?.focus(); - }, [setOpen]); + buttonElement?.focus(); + }, [buttonElement]); const [handleMouseDown, handleMouseUp] = useSelectableClick(handleClose); @@ -50,7 +44,7 @@ export const AltTextBadge: React.FC<{ <>