Skip to content

Commit 79400ab

Browse files
authored
Set lang and dir attributes on root html element (#6981)
As suggested by the Lighthouse accessibility audit tool.
1 parent 1224648 commit 79400ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

site/lib/src/layouts/dash_layout.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ ga('send', 'pageview');
179179

180180
return Component.fragment(
181181
[
182+
const Document.html(
183+
attributes: {
184+
'lang': 'en',
185+
'dir': 'ltr',
186+
},
187+
),
182188
Document.body(
183189
attributes: {
184190
'class': [?bodyClass, ...defaultBodyClasses].toClasses,

site/pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ environment:
77
sdk: ^3.9.0
88

99
dependencies:
10-
analyzer: 8.1.1
1110
build: ^4.0.1
1211
collection: ^1.19.1
1312
crypto: ^3.0.6

0 commit comments

Comments
 (0)