mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
Issue number: N/A --------- ## What is the current behavior? Setting a custom `role` on the `ion-content` element does not work. ## What is the new behavior? - Inherit attributes for the content element which allows a custom `role` property to be set - Adds e2e tests for content, header, and footer verifying that the proper roles are assigned ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information To test this PR: 1. Switch to the branch and navigate to the `core/` directory 1. Make sure to run `npx playwright install` if it has not been updated recenly 1. Run `npm run test.e2e src/components/content/test/a11y/` 1. Verify that the tests pass 1. Remove my fix in `core/src/components/content/content.tsx` and run the test again 1. Verify that the `should allow for custom role` tests fail