-
Notifications
You must be signed in to change notification settings - Fork 5k
Dialog: headerTemplate should receive ariaLabelledBy in context #19333
Copy link
Copy link
Closed
Labels
Component: AccessibilityIssue or pull request is related to WCAG or ARIAIssue or pull request is related to WCAG or ARIALTS-PORTABLEIssue's fix will be ported to supported LTS versionsIssue's fix will be ported to supported LTS versionsType: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been addIssue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Metadata
Metadata
Assignees
Labels
Component: AccessibilityIssue or pull request is related to WCAG or ARIAIssue or pull request is related to WCAG or ARIALTS-PORTABLEIssue's fix will be ported to supported LTS versionsIssue's fix will be ported to supported LTS versionsType: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been addIssue contains an enhancement related to a specific component. Additional functionality has been add
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Done
Describe the bug
When creating a custom header template, I need to properly set the id attribute to match the ariaLabelledBy reference used in the dialog's aria-labelledby attribute. Without access to this value, the accessibility relationship between the dialog and its label cannot be maintained.
Pull Request Link
#19334
Reproducer
https://primeng.org/dialog#template
Environment
Any
Angular version
21
PrimeNG version
v21
Node version
No response
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The ariaLabelledBy value should be passed to the header template context, allowing developers to create accessible custom headers.