mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Multiple fixes related to heading levels: * Fix heading level absorption. Heading level would get erased when a semantics config is absorbed into another. With this change the highest heading level wins. * Add `headingLevel` to the diagnostics of `SemanticsNode`. * Add unit-tests for heading levels. * Add an a11y use-case for headings. Improves https://github.com/flutter/flutter/issues/46789 and general accessibility of headings.
16 lines
524 B
JavaScript
16 lines
524 B
JavaScript
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
{{flutter_js}}
|
|
{{flutter_build_config}}
|
|
_flutter.loader.load({
|
|
config: {
|
|
// Use the local CanvasKit bundle instead of the CDN to reduce test flakiness.
|
|
canvasKitBaseUrl: "/canvaskit/",
|
|
// Set this to `true` to make semantic DOM nodes visible on the UI. This is
|
|
// sometimes useful for debugging.
|
|
debugShowSemanticsNodes: false,
|
|
},
|
|
});
|