You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It says: “The canvas element can be customized with canvasProps property to define aria roles and properties”. However, the canvasProps property is not available in PrimeReact. Since commit #3982, it's only possible to specify an ariaLabel property.
It's quite possible that this “Accessibility” section was initially copy/pasted from PrimeVue.
2 possibilities:
either the “Accessibility” section needs to be corrected so that it describes the current behavior.
or change the implementation to match the current description. In other words, provide the canvasProps property, through which we can define the aria roles and properties (and therefore remove the ariaLabel property, as it can be defined in canvasProps). This is the current behavior in PrimeVue.
Reproducer
No response
System Information
"primereact": "10.8.2""react": "^18.2.0"
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered:
Fixprimefaces#7118 : Updating Chart accessibility documentation
The documentation mentions a 'canvasProps' property which is not available in PrimeReact.
To define aria roles and properties, the 'pt' property must be used insteed.
Describe the bug
The “Accessibility” section of the Chart component is not in line with the current implementation (https://primereact.org/chart/#accessibility).
It says: “The canvas element can be customized with
canvasProps
property to define aria roles and properties”. However, thecanvasProps
property is not available in PrimeReact. Since commit #3982, it's only possible to specify anariaLabel
property.It's quite possible that this “Accessibility” section was initially copy/pasted from PrimeVue.
2 possibilities:
canvasProps
property, through which we can define the aria roles and properties (and therefore remove theariaLabel
property, as it can be defined incanvasProps
). This is the current behavior in PrimeVue.Reproducer
No response
System Information
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: