Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(a11y): Added an event listener on the file, for availability #733

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

egordidenko
Copy link
Contributor

@egordidenko egordidenko commented Aug 27, 2024

Description

Checklist

Summary by CodeRabbit

  • New Features

    • Enhanced accessibility for file status updates in the FileItem component with new aria attributes.
    • Improved user experience for screen reader users in the UploadList component by adding live region announcements.
    • Expanded localization support with new translations for file upload statuses in multiple languages, improving accessibility for diverse user groups.
  • Bug Fixes

    • Resolved issues related to the clarity of file status representation in the FileItem component.

Copy link
Contributor

coderabbitai bot commented Aug 27, 2024

Walkthrough

The changes introduce updates to the FileItem class, enhancing its accessibility features by using string descriptions for state symbols and adding an ariaLabelStatusFile property. Localization files have been updated across multiple languages to include new entries for various file upload statuses. These modifications aim to improve clarity and accessibility for users interacting with the file uploader component.

Changes

Files Change Summary
blocks/FileItem/FileItem.js Updated FileItemState to use string descriptions with Symbol. Added ariaLabelStatusFile.
locales/file-uploader/*.js Added new localization entries for various statuses (finished, failed, uploading, idle) and accessibility messages in multiple languages.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant FileItem

    User->>FileItem: Upload file
    FileItem->>User: Update file status (using Symbols)
Loading

🐇 "In fields and gardens, we leap with delight,
With symbols of status, our paths are now bright.
Aria whispers of changes, polite and clear,
For every brave user, we bring them near!
Hop, hop, hooray, for the updates we cheer,
Accessibility blooms, spreading joy far and near!" 🌼


Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@egordidenko egordidenko force-pushed the feat/a11y-listener-event branch from 96b0a3f to 3cc91e2 Compare August 27, 2024 23:41
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between dc8f773 and 3cc91e2.

Files selected for processing (2)
  • blocks/FileItem/FileItem.js (4 hunks)
  • blocks/UploadList/UploadList.js (1 hunks)
Additional comments not posted (4)
blocks/UploadList/UploadList.js (1)

204-204: LGTM!

The addition of the aria-live="polite" attribute enhances accessibility by ensuring that screen readers announce changes to the headerText in a non-intrusive manner.

The code changes are approved.

blocks/FileItem/FileItem.js (3)

13-16: LGTM!

The modification of FileItemState to use string descriptions for its symbols enhances readability and clarity.

The code changes are approved.


58-58: LGTM!

The addition of the ariaLabelStatusFile property enhances accessibility by ensuring that screen readers can convey the current status of the file item to users.

The code changes are approved.


294-294: LGTM!

The dynamic binding of the aria-label to the ariaLabelStatusFile property ensures that the status is communicated effectively to assistive technologies.

The code changes are approved.

@egordidenko egordidenko requested a review from nd0ut August 28, 2024 11:27
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3cc91e2 and 013e46f.

Files selected for processing (35)
  • blocks/FileItem/FileItem.js (4 hunks)
  • locales/file-uploader/ar.js (1 hunks)
  • locales/file-uploader/az.js (1 hunks)
  • locales/file-uploader/ca.js (1 hunks)
  • locales/file-uploader/cs.js (1 hunks)
  • locales/file-uploader/da.js (1 hunks)
  • locales/file-uploader/de.js (1 hunks)
  • locales/file-uploader/el.js (1 hunks)
  • locales/file-uploader/en.js (1 hunks)
  • locales/file-uploader/es.js (1 hunks)
  • locales/file-uploader/et.js (1 hunks)
  • locales/file-uploader/fr.js (1 hunks)
  • locales/file-uploader/he.js (1 hunks)
  • locales/file-uploader/hy.js (1 hunks)
  • locales/file-uploader/is.js (1 hunks)
  • locales/file-uploader/it.js (1 hunks)
  • locales/file-uploader/ja.js (1 hunks)
  • locales/file-uploader/ka.js (1 hunks)
  • locales/file-uploader/kk.js (1 hunks)
  • locales/file-uploader/ko.js (1 hunks)
  • locales/file-uploader/lv.js (1 hunks)
  • locales/file-uploader/nb.js (1 hunks)
  • locales/file-uploader/nl.js (1 hunks)
  • locales/file-uploader/pl.js (1 hunks)
  • locales/file-uploader/pt.js (1 hunks)
  • locales/file-uploader/ro.js (1 hunks)
  • locales/file-uploader/ru.js (1 hunks)
  • locales/file-uploader/sk.js (1 hunks)
  • locales/file-uploader/sr.js (1 hunks)
  • locales/file-uploader/sv.js (1 hunks)
  • locales/file-uploader/tr.js (1 hunks)
  • locales/file-uploader/uk.js (1 hunks)
  • locales/file-uploader/vi.js (1 hunks)
  • locales/file-uploader/zh-TW.js (1 hunks)
  • locales/file-uploader/zh.js (1 hunks)
Additional comments not posted (165)
locales/file-uploader/zh.js (5)

114-114: LGTM!

The translation for 'finished' appears correct.


115-115: LGTM!

The translation for 'failed' appears correct.


116-116: LGTM!

The translation for 'uploading' appears correct.


117-117: LGTM!

The translation for 'idle' appears correct.


118-118: LGTM!

The translation for 'a11y-file-item-status' appears correct and follows the format for accessibility.

locales/file-uploader/zh-TW.js (5)

114-114: LGTM!

The translation for 'finished' appears correct.


115-115: LGTM!

The translation for 'failed' appears correct.


116-116: LGTM!

The translation for 'uploading' appears correct.


117-117: LGTM!

The translation for 'idle' appears correct.


118-118: LGTM!

The translation for 'a11y-file-item-status' appears correct and follows the format for accessibility.

locales/file-uploader/ko.js (5)

113-113: LGTM!

The translation for 'finished' appears correct.


114-114: LGTM!

The translation for 'failed' appears correct.


115-115: LGTM!

The translation for 'uploading' appears correct.


116-116: LGTM!

The translation for 'idle' appears correct.


117-117: LGTM!

The translation for 'a11y-file-item-status' appears correct and follows the format for accessibility.

locales/file-uploader/ja.js (5)

114-114: LGTM!

The translation for "finished" is correct.


115-115: LGTM!

The translation for "failed" is correct.


116-116: LGTM!

The translation for "uploading" is correct.


117-117: LGTM!

The translation for "idle" is correct.


118-118: LGTM!

The translation for "File {{fileName}} in status {{status}}" is correct.

locales/file-uploader/he.js (5)

116-116: LGTM!

The translation for "finished" is correct.


117-117: LGTM!

The translation for "failed" is correct.


118-118: LGTM!

The translation for "uploading" is correct.


119-119: LGTM!

The translation for "idle" is correct.


120-120: LGTM!

The translation for "File {{fileName}} in status {{status}}" is correct.

locales/file-uploader/en.js (5)

114-114: LGTM!

The translation for "finished" is correct.


115-115: LGTM!

The translation for "failed" is correct.


116-116: LGTM!

The translation for "uploading" is correct.


117-117: LGTM!

The translation for "idle" is correct.


118-118: LGTM!

The translation for "File {{fileName}} in status {{status}}" is correct.

locales/file-uploader/ar.js (5)

122-122: LGTM!

The translation for finished is correct and consistent with the existing localization format.


123-123: LGTM!

The translation for failed is correct and consistent with the existing localization format.


124-124: LGTM!

The translation for uploading is correct and consistent with the existing localization format.


125-125: LGTM!

The translation for idle is correct and consistent with the existing localization format.


126-126: LGTM!

The translation for a11y-file-item-status is correct and consistent with the existing localization format.

locales/file-uploader/da.js (5)

115-115: LGTM!

The translation for finished is correct and consistent with the existing localization format.


116-116: LGTM!

The translation for failed is correct and consistent with the existing localization format.


117-117: LGTM!

The translation for uploading is correct and consistent with the existing localization format.


118-118: LGTM!

The translation for idle is correct and consistent with the existing localization format.


119-119: LGTM!

The translation for a11y-file-item-status is correct and consistent with the existing localization format.

locales/file-uploader/sv.js (5)

114-114: LGTM!

The translation for finished is correct and consistent with the existing localization format.


115-115: LGTM!

The translation for failed is correct and consistent with the existing localization format.


116-116: LGTM!

The translation for uploading is correct and consistent with the existing localization format.


117-117: LGTM!

The translation for idle is correct and consistent with the existing localization format.


118-118: LGTM!

The translation for a11y-file-item-status is correct and consistent with the existing localization format.

locales/file-uploader/nb.js (1)

114-118: LGTM!

The added translations for file upload statuses and accessibility are correct and consistent with the existing format.

locales/file-uploader/vi.js (1)

114-118: LGTM!

The added translations for file upload statuses and accessibility are correct and consistent with the existing format.

locales/file-uploader/et.js (1)

114-118: LGTM!

The added translations for file upload statuses and accessibility are correct and consistent with the existing format.

locales/file-uploader/tr.js (5)

114-114: LGTM!

The translation for finished is correct and consistent.


115-115: LGTM!

The translation for failed is correct and consistent.


116-116: LGTM!

The translation for uploading is correct and consistent.


117-117: LGTM!

The translation for idle is correct and consistent.


118-118: LGTM!

The translation for a11y-file-item-status is correct and consistent. The placeholders {{fileName}} and {{status}} are correctly used.

locales/file-uploader/is.js (5)

114-114: LGTM!

The translation for finished is correct and consistent.


115-115: LGTM!

The translation for failed is correct and consistent.


116-116: LGTM!

The translation for uploading is correct and consistent.


117-117: LGTM!

The translation for idle is correct and consistent.


118-118: LGTM!

The translation for a11y-file-item-status is correct and consistent. The placeholders {{fileName}} and {{status}} are correctly used.

locales/file-uploader/az.js (5)

114-114: LGTM!

The translation for finished is correct and consistent.


115-115: LGTM!

The translation for failed is correct and consistent.


116-116: LGTM!

The translation for uploading is correct and consistent.


117-117: LGTM!

The translation for idle is correct and consistent.


118-118: LGTM!

The translation for a11y-file-item-status is correct and consistent. The placeholders {{fileName}} and {{status}} are correctly used.

locales/file-uploader/kk.js (5)

114-114: LGTM!

The translation for finished is correct.


115-115: LGTM!

The translation for failed is correct.


116-116: LGTM!

The translation for uploading is correct.


117-117: LGTM!

The translation for idle is correct.


118-118: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/hy.js (5)

114-114: LGTM!

The translation for finished is correct.


115-115: LGTM!

The translation for failed is correct.


116-116: LGTM!

The translation for uploading is correct.


117-117: LGTM!

The translation for idle is correct.


118-118: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/ka.js (5)

114-114: LGTM!

The translation for finished is correct.


115-115: LGTM!

The translation for failed is correct.


116-116: LGTM!

The translation for uploading is correct.


117-117: LGTM!

The translation for idle is correct.


118-118: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/sr.js (5)

116-116: LGTM!

The translation for finished is correctly added as gotovo.


117-117: LGTM!

The translation for failed is correctly added as nije uspelo.


118-118: LGTM!

The translation for uploading is correctly added as otpremanje.


119-119: LGTM!

The translation for idle is correctly added as neaktivan.


120-120: LGTM!

The translation for a11y-file-item-status is correctly added as Datoteka {{fileName}} u statusu {{status}}.

locales/file-uploader/pl.js (5)

118-118: LGTM!

The translation for finished is correctly added as zakończono.


119-119: LGTM!

The translation for failed is correctly added as niepowodzenie.


120-120: LGTM!

The translation for uploading is correctly added as wysyłanie.


121-121: LGTM!

The translation for idle is correctly added as bezczynny.


122-122: LGTM!

The translation for a11y-file-item-status is correctly added as Plik {{fileName}} w stanie {{status}}.

locales/file-uploader/sk.js (5)

118-118: LGTM!

The translation for finished is correctly added as dokončené.


119-119: LGTM!

The translation for failed is correctly added as neúspešné.


120-120: LGTM!

The translation for uploading is correctly added as nahrávanie.


121-121: LGTM!

The translation for idle is correctly added as nečinný.


122-122: LGTM!

The translation for a11y-file-item-status is correctly added as Súbor {{fileName}} v stave {{status}}.

locales/file-uploader/cs.js (5)

119-119: LGTM!

The translation for finished is correct and consistent.


120-120: LGTM!

The translation for failed is correct and consistent.


121-121: LGTM!

The translation for uploading is correct and consistent.


122-122: LGTM!

The translation for idle is correct and consistent.


123-123: LGTM!

The translation for a11y-file-item-status is correct and consistent.

locales/file-uploader/lv.js (5)

116-116: LGTM!

The translation for finished is correct and consistent.


117-117: LGTM!

The translation for failed is correct and consistent.


118-118: LGTM!

The translation for uploading is correct and consistent.


119-119: LGTM!

The translation for idle is correct and consistent.


120-120: LGTM!

The translation for a11y-file-item-status is correct and consistent.

locales/file-uploader/ca.js (5)

117-117: LGTM!

The translation for finished is correct and consistent.


118-118: LGTM!

The translation for failed is correct and consistent.


119-119: LGTM!

The translation for uploading is correct and consistent.


120-120: LGTM!

The translation for idle is correct and consistent.


121-121: LGTM!

The translation for a11y-file-item-status is correct and consistent.

locales/file-uploader/nl.js (5)

115-115: LGTM!

The translation for finished is correct.


116-116: LGTM!

The translation for failed is correct.


117-117: LGTM!

The translation for uploading is correct.


118-118: LGTM!

The translation for idle is correct.


119-119: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/pt.js (5)

117-117: LGTM!

The translation for finished is correct.


118-118: LGTM!

The translation for failed is correct.


119-119: LGTM!

The translation for uploading is correct.


120-120: LGTM!

The translation for idle is correct.


121-121: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/ru.js (5)

118-118: LGTM!

The translation for finished is correct.


119-119: LGTM!

The translation for failed is correct.


120-120: LGTM!

The translation for uploading is correct.


121-121: LGTM!

The translation for idle is correct.


122-122: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/de.js (5)

116-116: LGTM!

The translation for finished is correct.


117-117: LGTM!

The translation for failed is correct.


118-118: LGTM!

The translation for uploading is correct.


119-119: LGTM!

The translation for idle is correct.


120-120: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/uk.js (5)

118-118: LGTM!

The translation for finished is correct.


119-119: LGTM!

The translation for failed is correct.


120-120: LGTM!

The translation for uploading is correct.


121-121: LGTM!

The translation for idle is correct.


122-122: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/it.js (5)

117-117: LGTM!

The translation for finished is correct.


118-118: LGTM!

The translation for failed is correct.


119-119: LGTM!

The translation for uploading is correct.


120-120: LGTM!

The translation for idle is correct.


121-121: LGTM!

The translation for a11y-file-item-status is correct.

locales/file-uploader/es.js (5)

117-117: LGTM!

The translation for finished to terminado is correct.


118-118: LGTM!

The translation for failed to fallido is correct.


119-119: LGTM!

The translation for uploading to subiendo is correct.


120-120: LGTM!

The translation for idle to inactivo is correct.


121-121: LGTM!

The translation for a11y-file-item-status to Archivo {{fileName}} en estado {{status}} is correct.

locales/file-uploader/el.js (5)

116-116: LGTM!

The translation for finished to ολοκληρώθηκε is correct.


117-117: LGTM!

The translation for failed to απέτυχε is correct.


118-118: LGTM!

The translation for uploading to ανέβασμα is correct.


119-119: LGTM!

The translation for idle to ανενεργός is correct.


120-120: LGTM!

The translation for a11y-file-item-status to Το αρχείο {{fileName}} σε κατάσταση {{status}} is correct.

locales/file-uploader/ro.js (5)

117-117: LGTM!

The translation for finished to finalizat is correct.


118-118: LGTM!

The translation for failed to eșuat is correct.


119-119: LGTM!

The translation for uploading to încărcare is correct.


120-120: LGTM!

The translation for idle to inactiv is correct.


121-121: LGTM!

The translation for a11y-file-item-status to Fișierul {{fileName}} în status {{status}} is correct.

locales/file-uploader/fr.js (5)

117-117: LGTM!

The translation for finished is correct.

The code changes are approved.


118-118: LGTM!

The translation for failed is correct.

The code changes are approved.


119-119: LGTM!

The translation for uploading is correct.

The code changes are approved.


120-120: LGTM!

The translation for idle is correct.

The code changes are approved.


121-121: LGTM!

The translation for a11y-file-item-status is correct and follows the correct format for placeholders.

The code changes are approved.

blocks/FileItem/FileItem.js (7)

13-13: LGTM!

The change enhances the readability and clarity of the state constants.

The code changes are approved.


14-14: LGTM!

The change enhances the readability and clarity of the state constants.

The code changes are approved.


15-15: LGTM!

The change enhances the readability and clarity of the state constants.

The code changes are approved.


16-16: LGTM!

The change enhances the readability and clarity of the state constants.

The code changes are approved.


58-58: LGTM!

The addition of the ariaLabelStatusFile property improves the accessibility of the component by ensuring that screen readers can convey the current status of the file item to users.

The code changes are approved.


294-297: LGTM!

The dynamic binding of ariaLabelStatusFile ensures that the status is communicated effectively to assistive technologies.

The code changes are approved.


433-433: LGTM!

The addition of the aria-live="polite" attribute allows updates to the file name status to be announced by assistive technologies without interrupting the user.

The code changes are approved.

@egordidenko egordidenko force-pushed the feat/a11y-listener-event branch from 013e46f to 44486aa Compare August 29, 2024 14:03
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 013e46f and 44486aa.

Files selected for processing (35)
  • blocks/FileItem/FileItem.js (4 hunks)
  • locales/file-uploader/ar.js (1 hunks)
  • locales/file-uploader/az.js (1 hunks)
  • locales/file-uploader/ca.js (1 hunks)
  • locales/file-uploader/cs.js (1 hunks)
  • locales/file-uploader/da.js (1 hunks)
  • locales/file-uploader/de.js (1 hunks)
  • locales/file-uploader/el.js (1 hunks)
  • locales/file-uploader/en.js (1 hunks)
  • locales/file-uploader/es.js (1 hunks)
  • locales/file-uploader/et.js (1 hunks)
  • locales/file-uploader/fr.js (1 hunks)
  • locales/file-uploader/he.js (1 hunks)
  • locales/file-uploader/hy.js (1 hunks)
  • locales/file-uploader/is.js (1 hunks)
  • locales/file-uploader/it.js (1 hunks)
  • locales/file-uploader/ja.js (1 hunks)
  • locales/file-uploader/ka.js (1 hunks)
  • locales/file-uploader/kk.js (1 hunks)
  • locales/file-uploader/ko.js (1 hunks)
  • locales/file-uploader/lv.js (1 hunks)
  • locales/file-uploader/nb.js (1 hunks)
  • locales/file-uploader/nl.js (1 hunks)
  • locales/file-uploader/pl.js (1 hunks)
  • locales/file-uploader/pt.js (1 hunks)
  • locales/file-uploader/ro.js (1 hunks)
  • locales/file-uploader/ru.js (1 hunks)
  • locales/file-uploader/sk.js (1 hunks)
  • locales/file-uploader/sr.js (1 hunks)
  • locales/file-uploader/sv.js (1 hunks)
  • locales/file-uploader/tr.js (1 hunks)
  • locales/file-uploader/uk.js (1 hunks)
  • locales/file-uploader/vi.js (1 hunks)
  • locales/file-uploader/zh-TW.js (1 hunks)
  • locales/file-uploader/zh.js (1 hunks)
Files skipped from review due to trivial changes (7)
  • locales/file-uploader/en.js
  • locales/file-uploader/es.js
  • locales/file-uploader/he.js
  • locales/file-uploader/sk.js
  • locales/file-uploader/sv.js
  • locales/file-uploader/uk.js
  • locales/file-uploader/vi.js
Files skipped from review as they are similar to previous changes (22)
  • locales/file-uploader/ar.js
  • locales/file-uploader/az.js
  • locales/file-uploader/ca.js
  • locales/file-uploader/cs.js
  • locales/file-uploader/da.js
  • locales/file-uploader/de.js
  • locales/file-uploader/el.js
  • locales/file-uploader/et.js
  • locales/file-uploader/fr.js
  • locales/file-uploader/hy.js
  • locales/file-uploader/is.js
  • locales/file-uploader/ja.js
  • locales/file-uploader/ka.js
  • locales/file-uploader/lv.js
  • locales/file-uploader/nb.js
  • locales/file-uploader/nl.js
  • locales/file-uploader/pl.js
  • locales/file-uploader/pt.js
  • locales/file-uploader/ro.js
  • locales/file-uploader/ru.js
  • locales/file-uploader/sr.js
  • locales/file-uploader/zh.js
Additional comments not posted (29)
locales/file-uploader/zh-TW.js (5)

114-114: LGTM!

The translation for finished appears correct.


115-115: LGTM!

The translation for failed appears correct.


116-116: LGTM!

The translation for uploading appears correct.


117-117: LGTM!

The translation for idle appears correct.


118-118: LGTM!

The translation for a11y-file-item-status appears correct and follows the template format.

locales/file-uploader/ko.js (5)

113-113: LGTM!

The translation for finished appears correct.


114-114: LGTM!

The translation for failed appears correct.


115-115: LGTM!

The translation for uploading appears correct.


116-116: LGTM!

The translation for idle appears correct.


117-117: LGTM!

The translation for a11y-file-item-status appears correct and follows the template format.

locales/file-uploader/tr.js (5)

114-114: LGTM!

The translation for finished appears correct.


115-115: LGTM!

The translation for failed appears correct.


116-116: LGTM!

The translation for uploading appears correct.


117-117: LGTM!

The translation for idle appears correct.


118-118: LGTM!

The translation for a11y-file-item-status appears correct and follows the template format.

locales/file-uploader/kk.js (5)

114-114: LGTM!

The localization string for 'finished' is correctly translated.


115-115: LGTM!

The localization string for 'failed' is correctly translated.


116-116: LGTM!

The localization string for 'uploading' is correctly translated.


117-117: LGTM!

The localization string for 'idle' is correctly translated.


118-118: LGTM!

The localization string for 'a11y-file-item-status' is correctly translated and formatted.

locales/file-uploader/it.js (5)

117-117: LGTM!

The localization string for 'finished' is correctly translated.


118-118: LGTM!

The localization string for 'failed' is correctly translated.


119-119: LGTM!

The localization string for 'uploading' is correctly translated.


120-120: LGTM!

The localization string for 'idle' is correctly translated.


121-121: LGTM!

The localization string for 'a11y-file-item-status' is correctly translated and formatted.

blocks/FileItem/FileItem.js (4)

13-16: LGTM!

The modification of symbol values to use string descriptions improves readability and clarity.


58-58: LGTM!

The addition of ariaLabelStatusFile property improves accessibility by providing an accessible label for the file status.


294-297: LGTM!

The usage of ariaLabelStatusFile in _handleState method ensures that the accessible label is updated based on the file state.


433-433: LGTM!

The addition of aria-live attribute improves accessibility by allowing updates to the file name status to be announced by assistive technologies.

@egordidenko egordidenko merged commit 649db3b into main Aug 29, 2024
1 check passed
@egordidenko egordidenko deleted the feat/a11y-listener-event branch August 29, 2024 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants