-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[RNMobile] Column block #19013
[RNMobile] Column block #19013
Conversation
WIP: add hierarchy of click-down WIP: add hierarchy of click other element same parent EOD: click-down logic EOD: click-down logic fix WIP: dim unfocus element WIP: add navigate up button on floating toolbar EOD: change color of FloatingToolbar arrow to white change focus border color from gray to blue EOD: click-down logic lock onFocus on AztecView when block is not selected change dashed border color apply style to keep same innerblock size work with styles work with styles adjust borders margin pass isParentSelected to RichText to unlock onClick event
packages/block-editor/src/components/block-mover/index.native.js
Outdated
Show resolved
Hide resolved
@jbinda hi 👋 I repeated the tests, this time on iOS, they seem to work just fine. But we have a couple of accessibility problems.
As you see "test" is inside the first Column, and the button directions(icons) should be the opposite: I chose this on XCode to be able to test RTL:
cc @etoledom |
BTW, I checked the code as well, I think it looks pretty good. 🎉 Thank you for the updates. It'd be awesome if these accessibility issues are fixed as well. That way we'd just remove the DEV flags within this PR. |
If you have tried it on production build it still has old translations code and that is one of the cause why it do not work. If you test it another way I can try to replicate and try to see where is the issue
Ok it seems one more flag is necessary to change the direction of arrows if RTL mode is on. I will fix that today
I will try to fix a11y today. Also if we want to remove dev flag right away I will prepare production build with final version. |
I tried it on DEV with the latest changes. I recorded this video. Even if I try tapping on mover buttons it is not letting me and reading the "Columns" block description as if buttons are not accessible. |
One thing I know: "If a parent view is accessible, its children won't be seen by VoiceOver." We have this code piece /block-list/block.native.js
accessible={ ! ( isSelected || isChildBlockSelected ) } |
After I tried those changes in my local I am able to hear VoiceOver on mover buttons and issue is fixed. 🎉🎉🎉 I'll send you the patch. But now I recognize that some accessibility texts are set wrongly. In portrait mode: In landscape mode: |
I have applied fixes for a11y for VoiceOver as well as for messages and arrow directions in RTL |
Issues about RTL labels and VoiceOver are fixed! 🎉🎉🎉
I think this is ready to go! We can remove DEV flags and Great work! |
I removed the |
merged ! 🎉 🎉 🚀 |
1. BackgroundColumns/Column block on mobile has very similar code structure to the web version. However some slight differences were needed to make it work on mobile.
2. Current state (features included)
(n) - see point 3. Things to be aware of
4. Needs to be addressed/considered
|
Thank you @jbinda for dropping that summary! |
Description
Brings Column Block feature to mobile version.
Merge it first gutenberg PR:
[RNMobile] Inner Block Navigate down through hierarchy ✅
[RNMobile] fix group appender behaviour ✅
edited:
[RNMobile]Create cross platform
useResizeObserver()
hook ✅[RNMobile] block-wrapper for mobile version ✅
[RNMobile] Add
useResizeObserver()
to Column Block✅
[RNMobile] Adjustments in Column for bordering refactor ✅
[RNMobile] Include
support inserter
in Column Block❓ 🚧Please also refer to:
Related gutenberg-mobile PR
And also comments about design below:
comment1
comment2
comment3
breakpoints comment
How has this been tested?
You can test production builds:
iOS: IPA 25912
Andorid: APK 42598
Or try with demo app with below steps:
initial-html
initial-html
Screenshots
Types of changes
New feature ( Columns block )
Checklist: