Drilldown component uses the native dialog element to provide a modal dialog which comes with browser-specific
behavior. As a result, accessibility features may vary across different browsers.Tab, Shift-TabESCfocus on trigger elementaria property:aria-labeldialog, the aria-haspopup attribute must be set using the aria
property, e.g.: aria="{ 'aria-haspopup': 'dialog' }".aria-haspopup through the trigger component aria prop.aria prop when needed.aria-* attributes directly on the component host.<p-button aria-haspopup="dialog">
Menu
</p-button><p-button aria="{'aria-haspopup': 'dialog'}">
Vehicle menu
</p-button><p-drilldown open="true" aria-label="Navigation">
...
</p-drilldown><p-drilldown open="true" aria="{'aria-label': 'Vehicle navigation'}">
...
</p-drilldown><p-button>
Menu
</p-button>
<p-drilldown>
...
</p-drilldown><p-button aria="{'aria-haspopup': 'dialog'}">
Vehicle menu
</p-button>
<p-drilldown aria="{'aria-label': 'Vehicle navigation'}">
...
</p-drilldown>