microsoft / powerbi-client-react

Power BI for React which provides components and services to enabling developers to easily embed Power BI reports into their applications.
MIT License
305 stars 96 forks source link

How to add ARIA attributes like role and aria-label to powerbi element (iframe)? #81

Closed vijayvinayaka closed 1 year ago

KotanaSai21 commented 1 year ago

We have Javascript API to set the iframe title Follow the below code to set the title to iframe in the powerbi-client-react demo app.

try {
    const title: string = "Embedded report";
    report.setComponentTitle(title);
    console.log("The <iframe> title was set to \"" + title + "\"");
}
catch (errors) {
    console.log(errors);
}

References: Accessibility for your Power BI embedded analytics embedded solution | Microsoft Learn