Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Oct 30, 2023

  • Remove a11y announcements from FlutterViewEmbedder.
  • Simplify a11y announcements tests so they don't need FlutterViewEmbedder nor DomManager.
  • Left a few a11y-multi-view TODOs (cc @yjbanov).

Part of flutter/flutter#134443

@mdebbar mdebbar requested review from ditman and yjbanov October 30, 2023 21:53
@github-actions github-actions bot added the platform-web Code specifically for the web engine label Oct 30, 2023
@ditman
Copy link
Member

ditman commented Oct 31, 2023

The announcements host might be a full-blown global that all the views write to. I think one of the PRs that we got was to move the host "as lower down in the DOM as possible", so this might be something that we need to put near the end of the body tag.

(I am not an expert, but TL;DR: this might not need a per-view implementation!

@mdebbar
Copy link
Contributor Author

mdebbar commented Nov 8, 2023

I would prefer not to change the scope of this PR if possible. This PR is about moving the ownership of the a11y announcement element from FlutterViewEmbedder to DomManager but keeping the element and its behaviors unchanged.

Making a11y announcements global (i.e. in the <body>) is orthogonal to what I'm trying to do in this PR.

That said, I'm working (in my head, nothing written yet) on a proposal to have a <flutter-globals> container that goes under <body> and contains all of our global stuff that doesn't make sense to put inside a view (e.g. a11y announcements, text rulers).

Copy link
Member

@ditman ditman left a comment

Choose a reason for hiding this comment

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

Ship it! I agree with having a <flutter-globals> area in the page, I don't see any way of escaping that.

@mdebbar mdebbar added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 9, 2023
@auto-submit auto-submit bot merged commit 0fae75f into flutter:main Nov 9, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 9, 2023
@mdebbar mdebbar deleted the a11y_announcements branch November 9, 2023 20:45
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants