Skip to contentPorsche Design System
You are currently viewing an earlier release of the Porsche Design System.Switch to the latest Porsche Design System documentation.
SearchGitHub repository of Porsche Design SystemOpen settings sidebar
Drilldown ๐Ÿงช Table of Contents Accessibility support The 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. Keyboard Key / stateFunctionTab, Shift-TabMoves focus to the next (or previous) focusable element inside the dialog. Focus is trapped (browser behavior).ESCCloses the dialog.focus on trigger elementThe focus is returned to the trigger element after closing the dialog (browser behavior). ARIA enhancements External ARIA provided by the aria property: ARIAUsagearia-labelDefines a string value that labels the dialog element. Development considerations To inform users that the trigger button opens a dialog, the aria-haspopup attribute must be set using the aria property, e.g.: aria="{ 'aria-haspopup': 'dialog' }". Common do's and don'ts Do use a semantic trigger (usually a button) with a meaningful accessible name. Do set aria-haspopup through the trigger component aria prop. Do provide a meaningful dialog label through the drilldown aria prop when needed. Don't add native aria-* attributes directly on the component host. Integration examples
ARIA on trigger button host vs aria propโŒ Anti-pattern
<p-button aria-haspopup="dialog">
  Menu
</p-button>
โœ… Recommended
<p-button aria="{'aria-haspopup': 'dialog'}">
  Vehicle menu
</p-button>
Drilldown label on component host vs aria propโŒ Anti-pattern
<p-drilldown open="true" aria-label="Navigation">
  ...
</p-drilldown>
โœ… Recommended
<p-drilldown open="true" aria="{'aria-label': 'Vehicle navigation'}">
  ...
</p-drilldown>
Trigger without popup semantics or contextโŒ Anti-pattern
<p-button>
  Menu
</p-button>

<p-drilldown>
  ...
</p-drilldown>
โœ… Recommended
<p-button aria="{'aria-haspopup': 'dialog'}">
  Vehicle menu
</p-button>

<p-drilldown aria="{'aria-label': 'Vehicle navigation'}">
  ...
</p-drilldown>
Tests Automated TechnologySupportAXE-Core (WCAG 2.2 AA, Best-Practice)โœ…High-Contrast Mode (light/dark)โœ…Text-Zoom (200%)โœ… Manual TechnologySupportKeyboardโœ…Screen reader (VoiceOver, NVDA)โœ…
Global settingsColor SchemeAll color tokens use the light-dark() CSS function. Set the theme via the CSS color-scheme property: light for light mode, dark for dark mode, or light dark to follow the user's system preference.LightDarkLight DarkDirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%