Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(content): main landmark is set correctly #28709

Merged
merged 1 commit into from
Dec 20, 2023
Merged

fix(content): main landmark is set correctly #28709

merged 1 commit into from
Dec 20, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Dec 15, 2023

Issue number: Internal


What is the current behavior?

Maria noted that the way we set the main landmark is not correct and causes accessibility violations.

What is the new behavior?

  • Instead of rendering a main element inside of ion-content, the content itself is the main landmark.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: core @ionic/core package label Dec 15, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review December 15, 2023 18:34
@liamdebeasi liamdebeasi requested a review from a team as a code owner December 15, 2023 18:34
@liamdebeasi liamdebeasi requested review from sean-perkins and removed request for a team December 15, 2023 18:34
class={{
'inner-scroll': true,
'scroll-x': scrollX,
'scroll-y': scrollY,
overscroll: (scrollX || scrollY) && forceOverscroll,
}}
ref={(scrollEl: HTMLElement) => (this.scrollEl = scrollEl!)}
ref={(scrollEl) => (this.scrollEl = scrollEl)}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The types can be inferred here since we are using a div element directly

@liamdebeasi liamdebeasi merged commit 3b20206 into FW-5584 Dec 20, 2023
44 checks passed
@liamdebeasi liamdebeasi deleted the FW-5765 branch December 20, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants