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.
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
New: output block position for screen readers. Update: refactor the way the screen reader information on block button is delivered. #29060
New: output block position for screen readers. Update: refactor the way the screen reader information on block button is delivered. #29060
Changes from 33 commits
bf6325c
4d711e4
112ba24
06e53a6
d8fb0e2
bf04b90
b467a77
7e119f9
bb8ac20
93e5256
0f4dc5a
bd2f11c
8f8e0c0
22979b8
41259f4
3da7129
6f86d03
219e94e
4bae102
5b65ebc
4b312f9
3ef07e1
f5a163e
15d5381
1e4bf55
040516e
35e3e53
857265d
2fdf221
780f2c6
b6108ef
accb462
f040379
ba88fb9
ac76c53
94387c7
7fcb514
025c4ad
96b20fb
4f59b3f
0de9d39
a0c8034
32f297c
8b4d2ce
0a37674
2e925b0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I'm a little surprised there aren't unit tests for this function. Probably my fault as I think I initially wrote it.
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.
Oh, just realise there are unit tests. So these will need to be updated, with new test cases added for the additional branches of code. Happy to help with that, either directly or by providing guidance, let me know.
There are docs for testing, but not sure how good they are.
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.
This function is used in a React Native file, which will need updating as well:
gutenberg/packages/block-editor/src/components/block-list/block.native.js
Lines 191 to 195 in da8555d
The new
total
parameter here I understand corresponds to the block count, which comes from:gutenberg/packages/block-editor/src/store/selectors.js
Line 314 in da8555d