-
Notifications
You must be signed in to change notification settings - Fork 11
style(brick-container): add animated initial loading #4884
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
According to WAI-ARIA 1.2, does an implicit generic span role prohibit aria-label, and does the status role support an author-provided accessible name?💡 Result:
According to WAI-ARIA 1.2, the implicit generic role prohibits the use of author-provided accessible names, such as aria-label or aria-labelledby [1][2]. Because the generic role is intended to be a nameless container [1], these attributes are prohibited when an element is exposed with this role [1]. The status role does support an author-provided accessible name [3][4]. Authors may provide a name for an element with the status role using aria-label or aria-labelledby [3][4]. Providing such a name allows assistive technologies to announce the name of the status element, often in addition to its contents, particularly when a user navigates to the element [3][4].
Citations:
🏁 Script executed:
Repository: easyops-cn/next-core
Length of output: 15392
🌐 Web query:
WAI-ARIA 1.2 status role accessible name aria-label prohibited generic role span aria-label official specification💡 Result:
In WAI-ARIA 1.2 and the associated ARIA in HTML specification, the use of aria-label or aria-labelledby on a generic element—such as a or
Citations:
🏁 Script executed:
Repository: easyops-cn/next-core
Length of output: 292
🌐 Web query:
site:w3.org/TR/wai-aria-1.2/ status role "Name From" author aria-label💡 Result:
In the context of the WAI-ARIA (Accessible Rich Internet Applications) specification, the terms "status", "role", "Name", "From", "author", and "aria-label" refer to the Accessible Name and Description Computation process [1]. Specifically, Name from author refers to the method by which an accessible name for an element is determined based on explicit markup provided by the developer [1]. When an element is listed as supporting Name from author, it means the developer can explicitly provide a label using attributes such as aria-label or aria-labelledby [1]. Regarding the specific term status: 1. The status role is an ARIA landmark or widget role used to communicate important, time-sensitive information to the user without interrupting their current task [1]. 2. According to the WAI-ARIA 1.2 specification, the status role supports Name from author, meaning developers can provide an accessible name for a status element using aria-label or aria-labelledby if needed [1]. In summary, for any ARIA role that supports Name from author, the accessible name is derived from the following sources in order of precedence: - The author-provided values (e.g., aria-label, aria-labelledby, or HTML alt/title attributes) [1]. - The content of the element (if the author has not provided an explicit name) [1]. The specification explicitly notes that for roles supporting Name from author, authors are permitted to use aria-label or aria-labelledby to define that name [1]. Conversely, for roles where Name from author is prohibited, developers must not use these attributes to define an accessible name [1].
Citations:
将可访问名称移至
role="status"元素。span.initial-loading-text使用隐式generic角色,不能使用aria-label。其子元素都设置了aria-hidden="true",因此当前状态区域没有可靠的可访问名称。将aria-label="Loading"添加到div.initial-loading-screen,并将span.initial-loading-text设置为aria-hidden="true"。🤖 Prompt for AI Agents