diff options
Diffstat (limited to 'python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py')
-rw-r--r-- | python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py b/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py new file mode 100644 index 0000000000..0d6d839acd --- /dev/null +++ b/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py @@ -0,0 +1,22 @@ +# coding=utf8 + +# Any copyright is dedicated to the Public Domain. +# http://creativecommons.org/publicdomain/zero/1.0/ + +from fluent.migrate import COPY_PATTERN +from fluent.migrate.helpers import transforms_from + + +def migrate(ctx): + """Bug 1790387 - A11y improvements for the Feature Callout step indicator, part {index}""" + ctx.add_transforms( + "browser/browser/newtab/onboarding.ftl", + "browser/browser/newtab/onboarding.ftl", + transforms_from( + """ +onboarding-welcome-steps-indicator-label = + .aria-label = { COPY_PATTERN(from_path, "onboarding-welcome-steps-indicator2.aria-valuetext") } +""", + from_path="browser/browser/newtab/onboarding.ftl", + ), + ) |