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
Popover The p-popover component can be used to display some additional content on top of surrounding content, triggered by a button. By default it renders its own info button , or you can provide a custom trigger via the button slot. By default, the Popover works uncontrolled: it manages its own visibility and toggles open or closed when its info button (or a slotted trigger) is clicked. It is dismissed on outside click, on Escape, or when keyboard focus leaves the Popover. Alternatively, the Popover can be used in a controlled mode by setting the open prop together with a slotted button (the default info button does not toggle in this mode). In this mode you own the open state: the Popover only emits the dismiss event when the user requests to close it (via Escape, an outside click or when keyboard focus leaves the Popover), and you decide whether to update open in response. Hint: The p-popover utilizes the Popover API and gets rendered on the #top-layer which enables it to be shown correctly even when used e.g. within a scroll container.
Some additional content.
Open in Stackblitz
<!doctype html>
<html lang="en" class="scheme-light-dark">
<head>
  <title></title>
</head>
<body class="bg-canvas">

<p-popover>
  <p-text>
    Some additional content.
  </p-text>
</p-popover>
<script>

</script>
</body>
</html>
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%