Hide native radios and checkboxes while leaving them accessible to dragons #352
Conversation
👋 Percy has finished running the visual regression testing! |
that hodgehog is taking 144 screenshots |
🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 🦔 |
um. according to the hedgehog everything got slightly bigger |
I dug out GOV.UK Elements (the thing that predates GOV.UK Design System) to see why the Design System custom inputs use this method of opacity instead of the regular visually hidden class and found they ran into the same issue: |
nice! excellent prior art |
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.
Since now the real input is in front of the custom input the cursor is back to the regular pointer instead of the hand.
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.
👍 nice to have the comments re dragon on this too.
In GOV.UK's work they reset the margin to zero, this seems to be done for us using normalize. Which is an dependency so should be fine: https://github.com/Financial-Times/o-forms/blob/master/bower.json#L13 |
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've tested that saying "Click Stacked 1" and "Click Default 1" works in both examples in Dragon.
Non-blocking: May be able to remove the |
nice, thank you so much @NickColley ! i'll merge this tomorrow morning. if i could still get ft.com things to work on my laptop then i'd even try it in the context of some apps, but |
@chee if you can explain what you're aiming to do and some of the steps I may be able to do that bit. Let me know. |
@NickColley installing this branch of o-forms in the front page app and checking out the n-feedback form, or in myft and testing out the problematic radio buttons |
This is great, thanks @chee 🎉 |
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 PR is included in version v8.3.9 🎉 |
this should fix these:
https://financialtimes.atlassian.net/browse/NOPS-235
https://financialtimes.atlassian.net/secure/RapidBoard.jspa?rapidView=1108&projectKey=ACC&modal=detail&selectedIssue=ACC-423
and this Financial-Times/n-feedback#88
tested in:
Dragon on IE11 on Windows 10
Firefox on Linux
hopefully a kind robot can show us some visual regression tests from other browsers so we know we haven't made anything worse?
Also worth testing it has the same screenreader experience as the previous version
and try out http://localhost:8999/checkboxes and http://localhost:8999/radio-round