Bug 1893714 - Add aria-label to Firefox logo on HNT r=home-newtab-reviewers,fluent-reviewers,nbarrett

Differential Revision: https://phabricator.services.mozilla.com/D224246
This commit is contained in:
Maxx Crawford 2024-10-02 14:12:03 +00:00
parent 6aaa3d608a
commit 23a849eed9
3 changed files with 10 additions and 2 deletions

View File

@ -6,7 +6,11 @@ import React from "react";
function Logo() {
return (
<div className="logo-and-wordmark">
<div
className="logo-and-wordmark"
role="img"
data-l10n-id="newtab-logo-and-wordmark"
>
<div className="logo" />
<div className="wordmark" />
</div>

View File

@ -10150,7 +10150,9 @@ const NEWTAB_DARK_THEME = {
function Logo() {
return /*#__PURE__*/external_React_default().createElement("div", {
className: "logo-and-wordmark"
className: "logo-and-wordmark",
role: "img",
"data-l10n-id": "newtab-logo-and-wordmark"
}, /*#__PURE__*/external_React_default().createElement("div", {
className: "logo"
}), /*#__PURE__*/external_React_default().createElement("div", {

View File

@ -12,6 +12,8 @@ newtab-personalize-icon-label =
.aria-label = Personalize new tab
newtab-personalize-dialog-label =
.aria-label = Personalize
newtab-logo-and-wordmark =
.aria-label = { -brand-full-name }
## Search box component.