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
Accessibility: change table layout in toolbar #8587
Accessibility: change table layout in toolbar #8587
Conversation
6e3e9bc
to
5842fa0
Compare
5842fa0
to
317be6a
Compare
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.
code is ok, waiting for Pedro wrt CSS
317be6a
to
896d474
Compare
I canceled cypress, I will retrigger build after my fix for cypress will be merged. |
d7668b7
to
d1a6c6f
Compare
d1a6c6f
to
69c6a4b
Compare
rebased so it will include toolbar reworks |
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.
Desktop: all good
Mobile:
- the back button and hamburger are misaligned -> fixed pushed another commit
- Calc on mobile is broken: formula bar is inaccessible: I have pushed (last commit [WIP]) that fixes almost all issues, please feel free to re-use it and fix the last cosmetic issue
Tested on real android device with nc with chrome and chrome remote debug tools |
I have made some changes by adding a wrapper with CSS. I have tested all apps in desktop + mobile. All Good CC: @pedropintosilva |
Please rebase on top of recent w2ui rework to be sure it still works. |
Things are now broken after w2ui rework :( . I will try to fix it CC: @pedropintosilva please do not review it now i will post comment after fixes thanks |
019a17e
to
1bac95b
Compare
It seems a normal fix. There is fix height for toolbar-up, which is not good. Tested with mobile view and desktop all looks OK CC: @pedropintosilva ready to review |
@Darshan-upadhyay1110 there are incoming mobile toolbar conversions, best to not touch mobile yet eg PR: #8673 |
Sure, maybe i will wait till this PR merge then will proceed to change table thing |
bc1064a
to
4da6cf6
Compare
Please rebase on top of recent w2ui rework to be sure it still works.
For me it happened when I changed size of toolbars (height), then view was different and it reported different state fro "currently visible pages" |
b7c6380
to
e875759
Compare
|
Are you sure you didn't change any toolbar size? even 1 px, please check canvas size used in that test |
e875759
to
105a9c4
Compare
|
22b9f79
to
9991d09
Compare
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.
one commit has name: WIP Please Darshan take this: Calc: Mobile: top toolbar and formula
could you rename it or squash with other?
So it will not look like mistake.
9991d09
to
14a82c6
Compare
Done |
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.
ok, then I will leave final decision for @pedropintosilva as it is mainly css change
14a82c6
to
a8e4b49
Compare
- For the editor in the home view, a layout table is used, and it includes the use of IDs. This can potentially lead to issues with the interpretation of content by assistive technologies - Layout tables are meant to structure the layout of a page and should not contain structural markup like th , caption , summary , headers , or id. Solution: - replace `td` and 'table' tag with `div` - make some changes on css to be consistent with our prev design Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com> Change-Id: I136cd8d51b2e5035c6ef4292f759f49519e5bd61
- we changed table structure of `toolbar-wrapper` with `div` - so we also need to consider mobile view - made some neccessary changes for mobileview because of structure change in cool.html.m4 ('toolbar-wrapper') Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com> Change-Id: I91cd2c3ffbb0d625a78852398f6773136e9a7f6b
No need to specifically set width and height for .menuwizard-opened state. Best to set only one time those dimensions and just inherit from #toolbar-hamburger no matter the additional css class Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: I51eafc6c9b05b843d800b40a990aefd912e463f8
With "Change table layout to CSS base table structure" and "Adjust table elements for mobile view." changes we now have more divs instead of table elements but with that the hamburger menu is now mislaigned - Fix height - To do: ideally we would make both hamburger menu and the button at its side rendered with the exact same structure which is not the case. And ultimately remove height and just have it flex stretch etc Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: Id9365df82f1caff132dde41760a06689ec1145d1
Pedro : This changes from flex to grid (so we can have multiple columns and 2 rows) Darshan: - adding one more div and wrap all child of toolbar-wrapper execpt 'formulabr' will work here - i have tested the css grid approch it is breaking the mobile UI in Calc - here i have changed a bit in html and twiked css which covers all cases Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: Ia50fda95e2bef57d707bb4be1dd34e2ec083bfc5
a8e4b49
to
20ddde4
Compare
To make consistent all toolbar element height with prev version where we were using w2Ui lib - i have added height to table-row element same as we had in prev version - remove fix height for toolbar-up which is not needed now - this fix height will effect the bg-color in toolbar-up section Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com> Change-Id: I7b307a6a72968ed81fe2eb8663c430f11e3b3ced
20ddde4
to
e96e22d
Compare
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.
thanks, there are still other things that need fix/improvement but lets get this merged and I will send another PR and ask your testing @Darshan-upadhyay1110
Thanks :) |
<div id="toolbar-hamburger"> | ||
<label class="main-menu-btn" for="main-menu-state"> | ||
<span class="main-menu-btn-icon" id="main-menu-btn-icon"></span> | ||
</label> | ||
</div> |
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.
As another follow up we should probably simplify this to have just a simple button with icon
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.
please prepare only after my PR
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.
Sure
Change table layout to CSS base table structure
potentially lead to issues with the interpretation of content by assistive technologies
meant to structure the layout of a page and should not contain structural markup like th , caption ,
summary , headers , or id.
Solution:
td
and 'table' tag withdiv
Adjust table elements for mobile view
toolbar-wrapper
withdiv