missing id property on p-menuitem #298
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
Hi, Maybe I misunderstood something or simply do not see the forest behind the tree, but I don't find any id attribute on list items either. It appears in your inserted picture, but does not appear in the generated HTML in our environment. Our menu which related to that HTML example: What do I miss? And an additional comment. I set automationId attribute of all MenuItem class, but its value appears ONLY on the top level menu items as data-automationid attribute, but not on 2nd or 3rd menu level. (see attached picture too) |
Beta Was this translation helpful? Give feedback.
Hi,
We've made adjustments to the placement of id attributes in our menu components as part of our efforts to improve accessibility. Unfortunately, reverting these attributes to anchor tags is not feasible. However, you don't need to rewrite all of the tests. Instead of targeting anchors with the id attribute, you can now target list items, which requires only minimal changes. It's also important to note that the click functionality has been moved from the anchors to the div with
p-menuitem-content
class.