)]}'
{
  "commit": "87910ce3c3d45c0aea12b48eefe6303ce8b3b6ea",
  "tree": "104f7ae7ca4d919ecdc49af11c643c03794e8f77",
  "parents": [
    "9caa77c796c2f554a4c91d23aadfa8f21b4c3bc3"
  ],
  "author": {
    "name": "Bruno Corona",
    "email": "brunocorona.alcantar@gmail.com",
    "time": "Fri Sep 11 09:08:35 2026 -0600"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Sep 11 15:08:35 2026 +0000"
  },
  "message": "[material_ui] Port flutter/flutter #185475 \"Accessibility: Add semanticLabel to MenuAnchor\" (#12806)\n\nPorts flutter/flutter#185475 to `material_ui`, following the instructions in flutter/flutter#188444. The commits were cherry-picked from the original PR, with only file paths adjusted for this repo.\r\n\r\n`MenuAnchor` had no way to label the expanded menu overlay, so screen readers announced nothing useful when a menu opened. This adds a `semanticLabel` property, applied to a `Semantics` node wrapping the submenu in `_buildOverlay`, and only when a label is provided.\r\n\r\nThe original PR also announced the label with `SemanticsService.announce` when the menu opened. Following @chunhtai\u0027s review feedback on flutter/flutter#185475, that part is dropped here: a semantics label should not double as announcement text, and anyone who wants an announcement can call `SemanticsService.announce` from `onOpen`. The last commit on this branch removes it.\r\n\r\n## Tests\r\n\r\nNew test `MenuAnchor applies semanticLabel to the expanded menu overlay` in `packages/material_ui/test/menu_anchor_test.dart`, checking that the label is absent before the menu opens and present once it expands. The `menu_anchor.0` API example now sets a `semanticLabel`, and its example test still passes.\r\n\r\nFixes flutter/flutter#184876\r\n\r\nSupersedes flutter/flutter#185475, which will be closed with a pointer to this PR.\r\n\r\n## Pre-Review Checklist\r\n\r\n**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member\u0027s review for guidance on which automated comments should be addressed.\r\n\r\n[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a885f7e5234cf35ef097162c8ed848f47ed88b70",
      "old_mode": 33188,
      "old_path": "packages/material_ui/example/lib/menu_anchor/menu_anchor.0.dart",
      "new_id": "b4973ef60442bf905e112a1baa0ad2429d693e40",
      "new_mode": 33188,
      "new_path": "packages/material_ui/example/lib/menu_anchor/menu_anchor.0.dart"
    },
    {
      "type": "modify",
      "old_id": "bcc1a17befcea36a5a174bbf03df5e814b7d388a",
      "old_mode": 33188,
      "old_path": "packages/material_ui/lib/src/menu_anchor.dart",
      "new_id": "78d69aa7fb0cf34de8f11dfb81d8d50b22a0d6b9",
      "new_mode": 33188,
      "new_path": "packages/material_ui/lib/src/menu_anchor.dart"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d14725dd9f4f32bd4565034ba1028683705d70bb",
      "new_mode": 33188,
      "new_path": "packages/material_ui/pending_changelogs/change_2026_09_09_1788954923085.yaml"
    },
    {
      "type": "modify",
      "old_id": "f54165756b3224a981db0095ec10c456e64d5a20",
      "old_mode": 33188,
      "old_path": "packages/material_ui/test/menu_anchor_test.dart",
      "new_id": "db9c3b4c696133dbe3ec41b3c552d76c2f419f14",
      "new_mode": 33188,
      "new_path": "packages/material_ui/test/menu_anchor_test.dart"
    }
  ]
}
