Open ChristianEdwardPadilla opened 1 month ago
Reproduced this issue on Web app, on Flutter stable 3.24.4
and master 3.27.0-1.0.pre.277
. On macOS app, the menu button is not read when navigating to it.
b/364808123
should be an easy fix to set button = true on each item. cc @QuncCccccc since you have worked on menu anchor recently
SubmenuButton and MenuItemButton are ButtonStyleButtons, so the button flag should have been set to true🧐.
Acknowledged. If anything needs to be done in the web engine, please feel free to redirect the issue to team-web
.
Steps to reproduce
Expected results
The buttons should be identified as buttons.
Actual results
The buttons are identified as "group".
Code sample
This can be reprod directly in the MenuAnchor docs: https://api.flutter.dev/flutter/material/MenuAnchor-class.html.
Or, by running the sample app:
Code sample
```dart import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; /// Flutter code sample for [MenuAnchor]. void main() => runApp(const MenuApp()); /// An enhanced enum to define the available menus and their shortcuts. /// /// Using an enum for menu definition is not required, but this illustrates how /// they could be used for simple menu systems. enum MenuEntry { about('About'), showMessage( 'Show Message', SingleActivator(LogicalKeyboardKey.keyS, control: true)), hideMessage( 'Hide Message', SingleActivator(LogicalKeyboardKey.keyS, control: true)), colorMenu('Color Menu'), colorRed('Red Background', SingleActivator(LogicalKeyboardKey.keyR, control: true)), colorGreen('Green Background', SingleActivator(LogicalKeyboardKey.keyG, control: true)), colorBlue('Blue Background', SingleActivator(LogicalKeyboardKey.keyB, control: true)); const MenuEntry(this.label, [this.shortcut]); final String label; final MenuSerializableShortcut? shortcut; } class MyCascadingMenu extends StatefulWidget { const MyCascadingMenu({super.key, required this.message}); final String message; @override StateScreenshots or Video
No response
Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console [✓] Flutter (Channel google3, on Debian GNU/Linux locale en_US.UTF-8) • Framework revision 621e7ef951 (33 days ago), 2024-09-25T00:00:00.000 • Engine revision d6d5fdba6a • Dart version dd73afd20b [✓] Connected device (1 available) • Linux (desktop) • linux • linux-x64 • Debian GNU/Linux ```