@porsche-design-system/components-react 4.8.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/package.json +2 -2
- package/skills/pds-audit-deprecations-react/SKILL.md +2 -2
- package/skills/pds-knowledge-react/SKILL.md +3 -3
- package/skills/pds-knowledge-react/references/components/p-banner/p-banner.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-carousel/p-carousel.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-crest/p-crest.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-display/p-display.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-fieldset/p-fieldset.md +2 -2
- package/skills/pds-knowledge-react/references/components/p-flyout/p-flyout.md +1 -3
- package/skills/pds-knowledge-react/references/components/p-heading/p-heading.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-icon/p-icon.md +39 -0
- package/skills/pds-knowledge-react/references/components/p-inline-notification/p-inline-notification.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-date/p-input-date.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-email/p-input-email.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-month/p-input-month.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-number/p-input-number.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-password/p-input-password.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-search/p-input-search.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-tel/p-input-tel.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-text/p-input-text.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-time/p-input-time.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-input-week/p-input-week.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-modal/p-modal.md +1 -3
- package/skills/pds-knowledge-react/references/components/p-sheet/p-sheet.md +1 -3
- package/skills/pds-knowledge-react/references/components/p-text/p-text.md +1 -1
- package/skills/pds-knowledge-react/references/components/p-toast/p-toast.md +2 -2
- package/skills/pds-knowledge-react/references/deprecations.md +4 -4
- package/skills/pds-knowledge-react/references/styles/emotion.md +9 -3
- package/skills/pds-knowledge-react/references/styles/scss.md +9 -3
- package/skills/pds-knowledge-react/references/styles/tailwindcss.md +9 -3
- package/skills/pds-knowledge-react/references/styles/vanilla-extract.md +9 -3
- package/skills/pds-knowledge-react/references/stylesheets.md +22 -10
- package/ssr/cjs/components/dist/styles/esm/styles-entry.cjs +42 -12
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/getCachedMinifiedCss.cjs +62 -0
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/ai-tag.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.cjs +2 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.cjs +4 -2
- package/ssr/cjs/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.cjs +2 -2
- package/ssr/esm/components/dist/styles/esm/styles-entry.mjs +42 -12
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/getCachedMinifiedCss.mjs +58 -0
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/accordion.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/ai-tag.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/banner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/button.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/canvas.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/carousel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/checkbox.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/crest.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/display.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/divider.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown-link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/drilldown.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/fieldset.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flag.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/flyout.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/heading.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/icon.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/inline-notification.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-date.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-email.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-month.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-number.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-password.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-search.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-tel.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-text.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-time.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-url.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/input-week.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-pure.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile-product.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link-tile.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/link.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/modal.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/model-signature.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/multi-select.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/optgroup.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pagination.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/pin-code.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/popover.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/radio-group.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/scroller.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/segmented-control.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select-option.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/select.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/sheet.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/spinner.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/stepper-horizontal.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/switch.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-body.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-cell.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-cell.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head-row.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-head.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table-row.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/table.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-bar.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tabs.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag-dismissible.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/tag.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list-item.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text-list.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/text.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/textarea.mjs +2 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/toast.mjs +4 -2
- package/ssr/esm/components-react/projects/react-ssr-wrapper/src/lib/dsr-components/wordmark.mjs +2 -2
- package/ssr/esm/getCachedMinifiedCss.d.ts +23 -0
- package/stylesheets/cn/index.css +1 -1
- package/stylesheets/index.css +1 -1
- package/stylesheets/variables.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [4.9.0] - 2026-10-21
|
|
18
|
+
|
|
19
|
+
## [4.9.0-rc.0] - 2026-10-20
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- `Knowledge Skill`: the guideline for creating custom icons in the `p-icon` reference
|
|
24
|
+
([#4781](https://github.com/porsche-design-system/porsche-design-system/pull/4781))
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- **Global Styles**: the default `color-scheme` on `:root` is now `only light` instead of `light`. This prevents
|
|
29
|
+
browsers with an automatic dark mode (e.g. Chrome on Android, Samsung Internet) from recoloring pages that use the
|
|
30
|
+
default light theme, which made icons practically invisible. The PDS light theme looks unchanged, and `.scheme-*`
|
|
31
|
+
classes behave as before. To allow automatic darkening again, set `.scheme-light` on the `<html>` element.
|
|
32
|
+
([#4783](https://github.com/porsche-design-system/porsche-design-system/pull/4783))
|
|
33
|
+
- **React SSR**: components from `@porsche-design-system/components-react/ssr` cache their styles per combination of
|
|
34
|
+
props instead of generating them on every server render, which reduces the server's CPU time per render. The rendered
|
|
35
|
+
markup is unchanged. ([#4788](https://github.com/porsche-design-system/porsche-design-system/pull/4788))
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- `Knowledge Skill`: links to Storefront pages the skill doesn't include led to an error page instead of the
|
|
40
|
+
documentation; they now open the Storefront of the skill's version
|
|
41
|
+
([#4781](https://github.com/porsche-design-system/porsche-design-system/pull/4781))
|
|
42
|
+
- `Button`, `Drilldown`, `Link`, `Multi Select`, `Segmented Control`, `Select`, `Tabs`, `Tabs Bar`: colors could lose contrast in high contrast mode, including hover, highlighted and selected states.
|
|
43
|
+
([#4775](https://github.com/porsche-design-system/porsche-design-system/pull/4775))
|
|
44
|
+
- `Multi Select Option`: slotted content only took up the width of its own content, so it could not fill the option,
|
|
45
|
+
e.g. with `w-full`, and right-aligned elements were not aligned to the right edge
|
|
46
|
+
([#4787](https://github.com/porsche-design-system/porsche-design-system/pull/4787))
|
|
47
|
+
|
|
17
48
|
## [4.8.0] - 2026-10-02
|
|
18
49
|
|
|
19
50
|
## [4.8.0-rc.1] - 2026-10-01
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@porsche-design-system/components-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.0",
|
|
4
4
|
"description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"porsche",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://github.com/porsche-design-system/porsche-design-system"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@porsche-design-system/components-js": "4.
|
|
24
|
+
"@porsche-design-system/components-js": "4.9.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"ag-grid-community": ">= 36.0.0 <37.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pds-audit-deprecations-react
|
|
3
3
|
description: Audit an existing react project for deprecated Porsche Design System (PDS) API usage — components, props, prop values, events, slots, CSS variables, tokens and styling-package aliases. Produces a JSON report and a Markdown report rendered from it, every finding carrying quoted evidence, a concrete fix and a derived confidence. Read-only apart from its two report files.
|
|
4
|
-
compatibility: Requires the pds-knowledge-react skill, which ships alongside this one in @porsche-design-system/components-react@4.
|
|
4
|
+
compatibility: Requires the pds-knowledge-react skill, which ships alongside this one in @porsche-design-system/components-react@4.9.0. The audited project must depend on that exact version.
|
|
5
5
|
disable-model-invocation: true
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -135,7 +135,7 @@ Every finding carries:
|
|
|
135
135
|
- `evidence` — every location where the project **uses** the API, each with a project-relative path, a line number and the source line **quoted verbatim**. The quote is not decoration: it is what lets a reader, or a later fix, confirm the finding against the file instead of trusting it.
|
|
136
136
|
- `anchor` on a location — the line that proves that usage is PDS, with its own path, line and quoted source. The import, the resolved SCSS `@use` **including one injected by build config**, the Tailwind `@theme` import, or the PDS root at the far end of a wrapper chain. Record it whenever it is not the evidence line itself; it is frequently in another file, and it is the only truthful place to put `vite.config.ts` for a stylesheet that names PDS nowhere. Omit it only where the usage anchors itself, as a `--p-` custom property does.
|
|
137
137
|
- `remediation` — a `replacement` with the exact `from` and `to` spelling whenever the index documents an unambiguous one, plus an `instruction` in words. Where the index documents no replacement, say so plainly in the instruction rather than inventing one.
|
|
138
|
-
- `sources` — the knowledge-skill reference the fact came from, as a path relative to that skill’s root, at version `4.
|
|
138
|
+
- `sources` — the knowledge-skill reference the fact came from, as a path relative to that skill’s root, at version `4.9.0`.
|
|
139
139
|
- the index entry’s message as `deprecationMessage`, verbatim, when it has one. Some say an API has no effect anymore; that wording matters to whoever reads the finding, so do not paraphrase it.
|
|
140
140
|
|
|
141
141
|
An evidence `line` is the **usage** — the attribute, tag, custom property or alias reference itself. Never the `import`, `@use` or `@theme` that anchored it, never the wrapper call it arrived through, and never the declaration line of a constant it resolved from — including a key inside an object that is applied to the element as a whole, which is such a declaration and not a usage. For such an object, the evidence line is the element it is applied to. Where a component is reached through a local binding, the evidence line is the reference to the PDS binding, not the render of the local alias. Those lines are real and they matter, which is exactly why the anchor has a field of its own: counted as locations instead, they inflate a finding by however many anchors it happens to have, and occurrence count is a sort key in §8 — so two runs of an unchanged project stop being comparable.
|
|
@@ -15,11 +15,11 @@ Prefer Porsche Design System components and tokens for new UI, even when the use
|
|
|
15
15
|
|
|
16
16
|
This skill currently covers components, global stylesheets and theming, tokens, styling integrations, patterns and templates, and the deprecated API index. It does not yet include complete getting-started, setup, and installation guidance; the v3-to-v4 migration guide; the changelog; partials; the AG Grid theme; or the Storefront’s Must Know and Help sections.
|
|
17
17
|
|
|
18
|
-
Before using documentation outside this skill or the installed package, match it to the installed PDS version. This skill was generated for `4.
|
|
18
|
+
Before using documentation outside this skill or the installed package, match it to the installed PDS version. This skill was generated for `4.9.0`; prefer the [exact-version Porsche Design System Storefront](https://designsystem.porsche.com/v4.9.0/). Major-version URLs such as `/v4/` always serve the latest v4 release and may describe APIs or setup introduced after the installed version. Use them only as a fallback and verify relevant details against the installed package.
|
|
19
19
|
|
|
20
20
|
For runnable starter apps per framework, consult the [Porsche Design System examples repository](https://github.com/porsche-design-system/examples), selecting a release tag or commit that matches the installed package instead of assuming its default branch is compatible. For release-specific changes, read `../../CHANGELOG.md`.
|
|
21
21
|
|
|
22
|
-
For exact API facts, inspect the installed typings and metadata first. When readable implementation details are necessary, use the [exact-version component source](https://github.com/porsche-design-system/porsche-design-system/tree/v4.
|
|
22
|
+
For exact API facts, inspect the installed typings and metadata first. When readable implementation details are necessary, use the [exact-version component source](https://github.com/porsche-design-system/porsche-design-system/tree/v4.9.0/packages/components/src/components) under the repository's `packages/components/src/components/<component>` directory. Do not use the default branch, which may represent a newer release.
|
|
23
23
|
|
|
24
24
|
For deployed browser behavior, inspect component requests in the Network panel. Treat these minified, content-hashed CDN artifacts as a debugging fallback; use the exact-version repository source for readable implementation details.
|
|
25
25
|
|
|
@@ -110,7 +110,7 @@ import { PButton, PorscheDesignSystemProvider } from '@porsche-design-system/com
|
|
|
110
110
|
|
|
111
111
|
On the server, the `/ssr` build emits component markup and styles as Declarative Shadow DOM so the browser can create the Shadow DOM before JavaScript runs. In the browser, it initializes like the standard React wrapper. The framework build must replace `process.browser` for its server and client targets and eliminate the unused branch.
|
|
112
112
|
|
|
113
|
-
Framework setup differs. Follow the [Next.js integration guide](https://designsystem.porsche.com/v4.
|
|
113
|
+
Framework setup differs. Follow the [Next.js integration guide](https://designsystem.porsche.com/v4.9.0/developing/next-js/getting-started/) or the [React Router integration guide](https://designsystem.porsche.com/v4.9.0/developing/react-router/getting-started/). Remix users should follow the React Router guidance because Remix v2 was upstreamed into React Router.
|
|
114
114
|
|
|
115
115
|
## Stylesheets
|
|
116
116
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
The `p-banner` component provides action-based feedback messages (e.g. after performing a task) or to convey informational and/or critical notification like some site related topics.
|
|
4
4
|
|
|
5
|
-
Review the [notification decision tree](https://designsystem.porsche.com/patterns/notifications/decision-tree) to determine which notification component is best for a particular scenario.
|
|
5
|
+
Review the [notification decision tree](https://designsystem.porsche.com/v4.9.0/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
6
6
|
|
|
7
|
-
For more information about the Usage of the `p-banner` checkout the [Notification](https://designsystem.porsche.com/patterns/notifications/introduction) page.
|
|
7
|
+
For more information about the Usage of the `p-banner` checkout the [Notification](https://designsystem.porsche.com/v4.9.0/patterns/notifications/introduction/) page.
|
|
8
8
|
|
|
9
9
|
## Accessibility support
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ Therefore, the `p-carousel`'s content has to be divided into multiple parts or s
|
|
|
16
16
|
>
|
|
17
17
|
> This component has limited support for dynamic property changes due to the way it is implemented.
|
|
18
18
|
>
|
|
19
|
-
> If you need to use a specific property dynamically, please open a [feature request](https://designsystem.porsche.com/help/feature-request/).
|
|
19
|
+
> If you need to use a specific property dynamically, please open a [feature request](https://designsystem.porsche.com/v4.9.0/help/feature-request/).
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
@@ -4,7 +4,7 @@ The `p-crest` gives the Porsche brand a distinctive look, sets it apart from oth
|
|
|
4
4
|
|
|
5
5
|
> **Usage hint**
|
|
6
6
|
>
|
|
7
|
-
> This component shall only be used on viewports below 480px (breakpoint "S"). Otherwise, [
|
|
7
|
+
> This component shall only be used on viewports below 480px (breakpoint "S"). Otherwise, the [Wordmark](../p-wordmark/p-wordmark.md) has to be used.
|
|
8
8
|
|
|
9
9
|
You can use native `click`, `focus`, `focusin`, `blur` and `focusout` events on the `p-crest`.
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> **Recommendation**
|
|
8
8
|
>
|
|
9
|
-
> Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render.
|
|
9
|
+
> Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render. See the [Tailwind CSS typography examples](../../styles/tailwindcss.md) for details.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# p-fieldset
|
|
2
2
|
|
|
3
|
-
The `p-fieldset` is a grouping component for wrapping contextual associated form elements. Its visible part is an HTML *legend* element, which can be seen like a headline for describing the meaning of a form block. You can see some usage examples on our [form patterns section](https://designsystem.porsche.com/patterns/forms/resources/).
|
|
3
|
+
The `p-fieldset` is a grouping component for wrapping contextual associated form elements. Its visible part is an HTML *legend* element, which can be seen like a headline for describing the meaning of a form block. You can see some usage examples on our [form patterns section](https://designsystem.porsche.com/v4.9.0/patterns/forms/resources/).
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ The `p-fieldset` is a grouping component for wrapping contextual associated form
|
|
|
27
27
|
|
|
28
28
|
### Sections including form elements
|
|
29
29
|
|
|
30
|
-
[Form pattern guideline](https://designsystem.porsche.com/patterns/forms).
|
|
30
|
+
[Form pattern guideline](https://designsystem.porsche.com/v4.9.0/patterns/forms/).
|
|
31
31
|
|
|
32
32
|
## Accessibility support
|
|
33
33
|
|
|
@@ -10,9 +10,7 @@ It is a controlled component. This grants flexible control over the flyout's beh
|
|
|
10
10
|
>
|
|
11
11
|
> This doesn't work completely reliable under iOS but is the most stable solution.
|
|
12
12
|
>
|
|
13
|
-
> Feel free to address this issue in an Open Source PR, if you can provide a better solution.
|
|
14
|
-
>
|
|
15
|
-
> **[Current implementation](https://github.com/porsche-design-system/porsche-design-system/blob/main/packages/components/src/utils/setScrollLock.ts)**
|
|
13
|
+
> Feel free to address this issue in an Open Source PR, if you can provide a better solution. See the [current implementation of the scroll lock](https://github.com/porsche-design-system/porsche-design-system/blob/main/packages/components/src/utils/setScrollLock.ts).
|
|
16
14
|
|
|
17
15
|
## Usage
|
|
18
16
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **Recommendation**
|
|
6
6
|
>
|
|
7
|
-
> Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render.
|
|
7
|
+
> Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render. See the [Tailwind CSS typography examples](../../styles/tailwindcss.md) for details.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -13,6 +13,45 @@ Along with other Porsche basic elements - such as colors, typography and the Por
|
|
|
13
13
|
|
|
14
14
|
- Don't use icons without label.
|
|
15
15
|
|
|
16
|
+
## Custom icons
|
|
17
|
+
|
|
18
|
+
We want to enable you to use the icons you need. Check the [Porsche Design System](https://icons.porsche.com) for an appropriate icon you are looking for. If there is no match, we encourage you to build, test and use the icons you need. To help you meet the quality standards of Porsche, you will find the guidelines below.
|
|
19
|
+
|
|
20
|
+
Do you have an icon that is mandatory for several teams and purposes? We are happy to include it in the Porsche Design System. Feel free to get in touch with us on our [Porsche Design System Slack](https://porschedev.slack.com/archives/CT7AVHTTQ)
|
|
21
|
+
|
|
22
|
+
### Metaphor and Appearance
|
|
23
|
+
|
|
24
|
+
- Check the Porsche environment for similar or close icons to adapt (Web, App, In Car, Print)
|
|
25
|
+
- Stick to the basic geometric shapes.
|
|
26
|
+
- Use easy and commonly known metaphors.
|
|
27
|
+
- Keep the details and complexity to a minimum.
|
|
28
|
+
- Make sure corresponding icons have the same position, e.g. the "add" and "remove" icons.
|
|
29
|
+
- Check your design about other icons from the Porsche Design System.
|
|
30
|
+
|
|
31
|
+
### Quality assurance
|
|
32
|
+
|
|
33
|
+
- Build your icons based on the default grid (48x48px). Default Porsche icons use 2px lines.
|
|
34
|
+
- Fill areas smaller than 4px.
|
|
35
|
+
- Snap pixels to the grid to ensure a sharp visual appearance (prevents blurred lines because of anti-aliasing on low-resolution displays).
|
|
36
|
+
- Try to balance the width and height of the icon to ensure a uniform appearance in icon groups.
|
|
37
|
+
- Respect the safe area around the icon (approximately 4px, which can vary depending on the ratio of the icon).
|
|
38
|
+
- Design with only one color.
|
|
39
|
+
|
|
40
|
+
### SVG Export
|
|
41
|
+
|
|
42
|
+
- Transform vector forms in a full, coherent vector shape. (convert strokes to shapes and merge objects).
|
|
43
|
+
- Delete everything that is not necessary (layers, strokes, variants, etc.).
|
|
44
|
+
- Export your icon as an SVG.
|
|
45
|
+
- Name SVG files according to the icon (e.g. "delete.svg" or "edit.svg").
|
|
46
|
+
- Name social icons "logo-companyname.svg".
|
|
47
|
+
- Run an SVG optimizer to create clean, semantic code.
|
|
48
|
+
|
|
49
|
+
### Read more on
|
|
50
|
+
|
|
51
|
+
[Nielsen Norman Group](https://nngroup.com/articles/icon-testing)
|
|
52
|
+
|
|
53
|
+
[UsabilityHub](https://usabilityhub.com/examples/easiest-icon-to-understand)
|
|
54
|
+
|
|
16
55
|
## Accessibility support
|
|
17
56
|
|
|
18
57
|
### ARIA enhancements
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The `p-inline-notification` is a controlled component that provides action-based feedback messages (e.g. after performing a task) or to convey informational and/or critical notification like some site related topics.
|
|
4
4
|
|
|
5
|
-
Review the [notification decision tree](https://designsystem.porsche.com/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
5
|
+
Review the [notification decision tree](https://designsystem.porsche.com/v4.9.0/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
6
6
|
|
|
7
7
|
# Inline Notification
|
|
8
8
|
|
|
@@ -36,7 +36,7 @@ A `label` is a caption which informs the user what information a particular form
|
|
|
36
36
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
37
37
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
38
38
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
39
|
-
- [Input
|
|
39
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
40
40
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
41
41
|
|
|
42
42
|
## Accessibility support
|
|
@@ -38,7 +38,7 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
|
|
|
38
38
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
39
39
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
40
40
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
41
|
-
- [Input
|
|
41
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
42
42
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
43
43
|
|
|
44
44
|
## Accessibility support
|
|
@@ -36,7 +36,7 @@ A `label` is a caption which informs the user what information a particular form
|
|
|
36
36
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
37
37
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
38
38
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
39
|
-
- [Input
|
|
39
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
40
40
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
41
41
|
|
|
42
42
|
## Accessibility support
|
|
@@ -38,7 +38,7 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
|
|
|
38
38
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
39
39
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
40
40
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
41
|
-
- [Input
|
|
41
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
42
42
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
43
43
|
|
|
44
44
|
## Accessibility support
|
package/skills/pds-knowledge-react/references/components/p-input-password/p-input-password.md
CHANGED
|
@@ -37,7 +37,7 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
|
|
|
37
37
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
38
38
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
39
39
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
40
|
-
- [Input
|
|
40
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
41
41
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
42
42
|
|
|
43
43
|
## Accessibility support
|
|
@@ -42,7 +42,7 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
|
|
|
42
42
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
43
43
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
44
44
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
45
|
-
- [Input
|
|
45
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
46
46
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
47
47
|
|
|
48
48
|
## Accessibility support
|
|
@@ -38,7 +38,7 @@ The `p-input-tel` component is specifically designed for collecting telephone nu
|
|
|
38
38
|
- [Input Search](../p-input-search/p-input-search.md)
|
|
39
39
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
40
40
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
41
|
-
- [Input
|
|
41
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
42
42
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
43
43
|
|
|
44
44
|
## Accessibility support
|
|
@@ -38,7 +38,7 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
|
|
|
38
38
|
- [Input Search](../p-input-search/p-input-search.md)
|
|
39
39
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
40
40
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
41
|
-
- [Input
|
|
41
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
42
42
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
43
43
|
|
|
44
44
|
## Accessibility support
|
|
@@ -38,7 +38,7 @@ While a `placeholder` is optional but recommended to be set whenever bits of exa
|
|
|
38
38
|
- [Input Search](../p-input-search/p-input-search.md)
|
|
39
39
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
40
40
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
41
|
-
- [Input
|
|
41
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
42
42
|
- [Input Week](../p-input-week/p-input-week.md)
|
|
43
43
|
|
|
44
44
|
## Accessibility support
|
|
@@ -37,7 +37,7 @@ A `label` is a caption which informs the user what information a particular form
|
|
|
37
37
|
- [Input Tel](../p-input-tel/p-input-tel.md)
|
|
38
38
|
- [Input Text](../p-input-text/p-input-text.md)
|
|
39
39
|
- [Input Time](../p-input-time/p-input-time.md)
|
|
40
|
-
- [Input
|
|
40
|
+
- [Input URL](../p-input-url/p-input-url.md)
|
|
41
41
|
|
|
42
42
|
## Accessibility support
|
|
43
43
|
|
|
@@ -10,9 +10,7 @@ It is a controlled component. This grants flexible control over the modal's beha
|
|
|
10
10
|
>
|
|
11
11
|
> This doesn't work completely reliable under iOS but is the most stable solution.
|
|
12
12
|
>
|
|
13
|
-
> Feel free to address this issue in an Open Source PR, if you can provide a better solution.
|
|
14
|
-
>
|
|
15
|
-
> **[Current implementation](https://github.com/porsche-design-system/porsche-design-system/blob/main/packages/components/src/utils/setScrollLock.ts)**
|
|
13
|
+
> Feel free to address this issue in an Open Source PR, if you can provide a better solution. See the [current implementation of the scroll lock](https://github.com/porsche-design-system/porsche-design-system/blob/main/packages/components/src/utils/setScrollLock.ts).
|
|
16
14
|
|
|
17
15
|
Following **web standards**, the component uses the native `<dialog />` element internally which ensures proper focus handling including a **focus trap**. In addition, it's rendered on the `#top-layer` which ensures the element to be on top of the page independent of where `p-modal` is placed in the DOM hierarchy (`z-index` is not relevant anymore and won't have any effect).
|
|
18
16
|
|
|
@@ -10,9 +10,7 @@ It is a controlled component. This grants flexible control over the sheet's beha
|
|
|
10
10
|
>
|
|
11
11
|
> This doesn't work completely reliable under iOS but is the most stable solution.
|
|
12
12
|
>
|
|
13
|
-
> Feel free to address this issue in an Open Source PR, if you can provide a better solution.
|
|
14
|
-
>
|
|
15
|
-
> **[Current implementation](https://github.com/porsche-design-system/porsche-design-system/blob/main/packages/components/src/utils/setScrollLock.ts)**
|
|
13
|
+
> Feel free to address this issue in an Open Source PR, if you can provide a better solution. See the [current implementation of the scroll lock](https://github.com/porsche-design-system/porsche-design-system/blob/main/packages/components/src/utils/setScrollLock.ts).
|
|
16
14
|
|
|
17
15
|
Following **web standards**, the component uses the native `<dialog />` element internally which ensures proper focus handling including a **focus trap**. In addition, it's rendered on the `#top-layer` which ensures the element to be on top of the page independent of where `p-sheet` is placed in the DOM hierarchy (`z-index` is not relevant anymore and won't have any effect).
|
|
18
16
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **Recommendation**
|
|
6
6
|
>
|
|
7
|
-
> Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render.
|
|
7
|
+
> Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render. See the [Tailwind CSS typography examples](../../styles/tailwindcss.md) for details.
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The `p-toast` component manages both, the queue and display of toast messages. Therefore, you can only have a single instance of this component within your application. Its messages are rendered on the `#top-layer` which ensures the element to be on top of the page, independent of where `p-toast` is placed in the DOM hierarchy (z-index is not relevant anymore and won't have any effect).
|
|
4
4
|
|
|
5
|
-
Review the [notification decision tree](https://designsystem.porsche.com/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
5
|
+
Review the [notification decision tree](https://designsystem.porsche.com/v4.9.0/patterns/notifications/decision-tree/) to determine which notification component is best for a particular scenario.
|
|
6
6
|
|
|
7
7
|
Queuing messages on `p-toast` component happens via its `addMessage()` method. For Angular users, we offer the injectable `ToastManager` service; for React and Vue, there is the `useToastManager()` hook (a composable in Vue). All expose the `addMessage()` method, which needs to be called with a parameter that has the following structure:
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@ type ToastMessage = {
|
|
|
15
15
|
|
|
16
16
|
The bottom position of the `p-toast` can be adjusted via the `--p-toast-position-bottom` CSS variable.
|
|
17
17
|
|
|
18
|
-
For more information about the Usage of the `p-toast` checkout the [Notification](https://designsystem.porsche.com/patterns/notifications/introduction) page.
|
|
18
|
+
For more information about the Usage of the `p-toast` checkout the [Notification](https://designsystem.porsche.com/v4.9.0/patterns/notifications/introduction/) page.
|
|
19
19
|
|
|
20
20
|
## Accessibility support
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Deprecated API
|
|
2
2
|
|
|
3
|
-
Every deprecated Porsche Design System API in `4.
|
|
3
|
+
Every deprecated Porsche Design System API in `4.9.0`, indexed by what is deprecated rather than by which component owns it. Use it to check an existing codebase; use the component and styling references to build with the current API.
|
|
4
4
|
|
|
5
5
|
Deprecated APIs still work in this version. Each will be removed in the next major release, so usage is a compatibility risk rather than a present-day defect — except where a message says an API has no effect anymore, which means the behavior is already gone and only the declaration remains.
|
|
6
6
|
|
|
@@ -675,12 +675,12 @@ Derived from the Tailwind theme exposed by `@porsche-design-system/components-re
|
|
|
675
675
|
|
|
676
676
|
## Tokens
|
|
677
677
|
|
|
678
|
-
No deprecations in `4.
|
|
678
|
+
No deprecations in `4.9.0`. Derived from the design-token API exposed by `@porsche-design-system/components-react/tokens`, which was checked and found to carry none — this is a verified result, not an omission.
|
|
679
679
|
|
|
680
680
|
## Icons
|
|
681
681
|
|
|
682
|
-
No deprecations in `4.
|
|
682
|
+
No deprecations in `4.9.0`. Derived from the `p-icon` `name` values exposed by `@porsche-design-system/components-react`, which was checked and found to carry none — this is a verified result, not an omission.
|
|
683
683
|
|
|
684
684
|
## Stylesheets
|
|
685
685
|
|
|
686
|
-
No deprecations in `4.
|
|
686
|
+
No deprecations in `4.9.0`. Derived from the global CSS exposed by `@porsche-design-system/components-react/index.css`, including `@porsche-design-system/components-react/variables.css` and `@porsche-design-system/components-react/color-scheme.css`, which was checked and found to carry none — this is a verified result, not an omission.
|
|
@@ -53,9 +53,15 @@ Then use the light-dark color tokens in your component styles; they resolve to t
|
|
|
53
53
|
the active theme automatically. Apply one of the `.scheme-*` classes to the document or any container
|
|
54
54
|
and the selected context cascades to all child elements:
|
|
55
55
|
|
|
56
|
-
- `.scheme-light` —
|
|
57
|
-
- `.scheme-
|
|
58
|
-
- `.scheme-
|
|
56
|
+
- `.scheme-light-dark` — dynamically follows the system/OS setting. Recommended to support dark mode.
|
|
57
|
+
- `.scheme-only-light` — forces light mode and prevents the browser from recoloring it.
|
|
58
|
+
- `.scheme-only-dark` — forces dark mode and prevents the browser from recoloring it.
|
|
59
|
+
- `.scheme-light` — uses light mode, but allows the browser's automatic dark mode (e.g. Chrome on
|
|
60
|
+
Android, Samsung Internet) to recolor it, which can leave icons with insufficient contrast. Prefer
|
|
61
|
+
`.scheme-only-light`.
|
|
62
|
+
- `.scheme-dark` — uses dark mode.
|
|
63
|
+
|
|
64
|
+
Without any class, the PDS global styles apply `color-scheme: only light`.
|
|
59
65
|
|
|
60
66
|
The same class themes **both** the PDS components and your own Emotion-styled markup — one
|
|
61
67
|
`light-dark()` palette drives both layers. There is no separate component theming API and no `theme`
|
|
@@ -61,9 +61,15 @@ for the active theme automatically:
|
|
|
61
61
|
Apply one of the `.scheme-*` classes to the document or any container; the selected context cascades
|
|
62
62
|
to all child elements:
|
|
63
63
|
|
|
64
|
-
- `.scheme-light` —
|
|
65
|
-
- `.scheme-
|
|
66
|
-
- `.scheme-
|
|
64
|
+
- `.scheme-light-dark` — dynamically follows the system/OS setting. Recommended to support dark mode.
|
|
65
|
+
- `.scheme-only-light` — forces light mode and prevents the browser from recoloring it.
|
|
66
|
+
- `.scheme-only-dark` — forces dark mode and prevents the browser from recoloring it.
|
|
67
|
+
- `.scheme-light` — uses light mode, but allows the browser's automatic dark mode (e.g. Chrome on
|
|
68
|
+
Android, Samsung Internet) to recolor it, which can leave icons with insufficient contrast. Prefer
|
|
69
|
+
`.scheme-only-light`.
|
|
70
|
+
- `.scheme-dark` — uses dark mode.
|
|
71
|
+
|
|
72
|
+
Without any class, the PDS global styles apply `color-scheme: only light`.
|
|
67
73
|
|
|
68
74
|
The same class themes **both** the PDS components and your own SCSS-styled markup — one `light-dark()`
|
|
69
75
|
palette drives both layers. There is no separate component theming API and no `theme` prop on
|
|
@@ -34,9 +34,15 @@ property — no proprietary switching logic. The Tailwind `.scheme-*` utilities
|
|
|
34
34
|
with a polyfill for browsers without `light-dark()` support. Apply one of these classes to
|
|
35
35
|
the document or any container; the selected context cascades to all child elements:
|
|
36
36
|
|
|
37
|
-
- `.scheme-light` —
|
|
38
|
-
- `.scheme-
|
|
39
|
-
- `.scheme-
|
|
37
|
+
- `.scheme-light-dark` — dynamically follows the system/OS setting. Recommended to support dark mode.
|
|
38
|
+
- `.scheme-only-light` — forces light mode and prevents the browser from recoloring it.
|
|
39
|
+
- `.scheme-only-dark` — forces dark mode and prevents the browser from recoloring it.
|
|
40
|
+
- `.scheme-light` — uses light mode, but allows the browser's automatic dark mode (e.g. Chrome on
|
|
41
|
+
Android, Samsung Internet) to recolor it, which can leave icons with insufficient contrast. Prefer
|
|
42
|
+
`.scheme-only-light`.
|
|
43
|
+
- `.scheme-dark` — uses dark mode.
|
|
44
|
+
|
|
45
|
+
Without any class, the PDS global styles apply `color-scheme: only light`.
|
|
40
46
|
|
|
41
47
|
The same class themes **both** the PDS components and the custom UI you build with these utilities —
|
|
42
48
|
one `light-dark()` palette drives both layers. There is no separate component theming API and no
|
|
@@ -57,9 +57,15 @@ Then use the light-dark color tokens in your component styles; they resolve to t
|
|
|
57
57
|
the active theme automatically. Apply one of the `.scheme-*` classes to the document or any container
|
|
58
58
|
and the selected context cascades to all child elements:
|
|
59
59
|
|
|
60
|
-
- `.scheme-light` —
|
|
61
|
-
- `.scheme-
|
|
62
|
-
- `.scheme-
|
|
60
|
+
- `.scheme-light-dark` — dynamically follows the system/OS setting. Recommended to support dark mode.
|
|
61
|
+
- `.scheme-only-light` — forces light mode and prevents the browser from recoloring it.
|
|
62
|
+
- `.scheme-only-dark` — forces dark mode and prevents the browser from recoloring it.
|
|
63
|
+
- `.scheme-light` — uses light mode, but allows the browser's automatic dark mode (e.g. Chrome on
|
|
64
|
+
Android, Samsung Internet) to recolor it, which can leave icons with insufficient contrast. Prefer
|
|
65
|
+
`.scheme-only-light`.
|
|
66
|
+
- `.scheme-dark` — uses dark mode.
|
|
67
|
+
|
|
68
|
+
Without any class, the PDS global styles apply `color-scheme: only light`.
|
|
63
69
|
|
|
64
70
|
The same class themes **both** the PDS components and your own vanilla-extract-styled markup — one
|
|
65
71
|
`light-dark()` palette drives both layers. There is no separate component theming API and no `theme`
|
|
@@ -84,15 +84,26 @@ the correct value for the active color scheme automatically:
|
|
|
84
84
|
|
|
85
85
|
Colors are driven by the native CSS [`light-dark()`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/light-dark)
|
|
86
86
|
function via the CSS [`color-scheme`](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/color-scheme)
|
|
87
|
-
property — no proprietary switching logic. By default,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
property — no proprietary switching logic. By default, the global styles set
|
|
88
|
+
`:root { color-scheme: only light; }`: color tokens use the light color scheme, and browsers with an
|
|
89
|
+
automatic dark mode (e.g. Chrome on Android, Samsung Internet, Android WebViews) are prevented from
|
|
90
|
+
recoloring the page. To enable the dark color scheme or automatic switching, add one of the
|
|
91
|
+
`.scheme-*` classes to the `<html>` element or any ancestor; the selected scheme cascades to all
|
|
92
|
+
child elements:
|
|
93
|
+
|
|
94
|
+
- `.scheme-light-dark` — automatically switches based on the user's system preference. This is the
|
|
95
|
+
recommended way to support dark mode.
|
|
96
|
+
- `.scheme-only-light` — forces the light color scheme and prevents the browser from overriding it.
|
|
97
|
+
- `.scheme-only-dark` — forces the dark color scheme and prevents the browser from overriding it.
|
|
98
|
+
- `.scheme-light` — uses the light color scheme, but still allows the browser's automatic dark mode
|
|
99
|
+
to recolor it. Prefer `.scheme-only-light`.
|
|
92
100
|
- `.scheme-dark` — enforces the dark color scheme.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
101
|
+
|
|
102
|
+
Browser automatic dark mode recolors the page algorithmically, but not reliably images such as icons,
|
|
103
|
+
which can end up with insufficient contrast. Never use `color-scheme: light` (or `.scheme-light`) to force a
|
|
104
|
+
light scheme; use `.scheme-only-light` instead. In apps that embed web content in a WebView, pass the
|
|
105
|
+
app theme on to the web content (e.g. by setting `.scheme-only-light` or `.scheme-only-dark` on
|
|
106
|
+
`<html>`).
|
|
96
107
|
|
|
97
108
|
This one class themes **both** PDS components and your own custom markup — everything resolves colors
|
|
98
109
|
through the same `light-dark()` palette, so there is no separate component-level theming API and no
|
|
@@ -142,7 +153,8 @@ PDS-owned variables such as `--p-color-*` to force a local scheme.**
|
|
|
142
153
|
The `color-scheme.css` stylesheet additionally ships a polyfill for browsers without `light-dark()`
|
|
143
154
|
support. If [browser support](https://caniuse.com/mdn-css_types_color_light-dark) is already
|
|
144
155
|
sufficient for your project, you can skip the polyfill and use the native `color-scheme` property and
|
|
145
|
-
`light-dark()` function directly (e.g. `html { color-scheme: light dark; }`
|
|
156
|
+
`light-dark()` function directly (e.g. `html { color-scheme: light dark; }` or
|
|
157
|
+
`html { color-scheme: only light; }`).
|
|
146
158
|
|
|
147
159
|
## Contents
|
|
148
160
|
|
|
@@ -154,7 +166,7 @@ sufficient for your project, you can skip the polyfill and use the native `color
|
|
|
154
166
|
|
|
155
167
|
| Stylesheet | Description |
|
|
156
168
|
| --- | --- |
|
|
157
|
-
| `variables.css` | Exposes the design system **CSS variables** (custom properties) on `:root`, including theme-aware colors resolved via `light-dark()` and `:lang()` font overrides. |
|
|
169
|
+
| `variables.css` | Exposes the design system **CSS variables** (custom properties) on `:root`, including theme-aware colors resolved via `light-dark()` and `:lang()` font overrides. Sets the default `color-scheme: only light`, which prevents browsers with an automatic dark mode from recoloring the page. |
|
|
158
170
|
| `color-scheme.css` | Provides the `.scheme-*` utility classes controlling the CSS `color-scheme` property, plus the `@supports` `light-dark()` polyfill. |
|
|
159
171
|
| `normalize.css` | Recommended **normalize** styles including CSS reset rules and base typography (font family and line height) for `html` and `body`. |
|
|
160
172
|
|