-
Notifications
You must be signed in to change notification settings - Fork 195
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
refactor template: form.html #1891
Comments
Issue #1891. Port the report form to the new style.
Although PR #1908 is merged, let's keep this issue open. We need to do some follow-ups. |
@denschub wanna add a list of follow ups / do you want to finish up the issue at some point? Otherwise happy to take over :) |
@zoepage added a list! i'll be able to continue, but that have to wait until next week, I fear. |
@denschub no worries && thank you :) |
I'm happy to help with this! |
@miketaylr cool. Just for your reference (dumping my brain so you don't have to start at 0), I did not take over all css classes from the old template to avoid having a lot of classes on all elements. Since the JS heavily depends on some lookups via JS classes, this probably breaks. So the easy solution is probably just to re-apply the classes, but the cleaner solution would be to change the JS to use the new classes (or something more robust and style independent, maybe IDs...) |
We kept all JS classes in the other templates as this would otherwise get too massive of a refactor. Phase 2 will be the part where we clean that up (probably 2020 🤡). |
@zoepage can you explain what's the expected markup here?
Not sure why we have nested labels. Is that intentional? I think I need to figure out the new markup before I fix the JS, since I'm just going to re-write the relevant bits. |
You might want to take a look at http://webcompat.github.io/design/ > Module: Forms This is the expected markup:
Happy to help and fix the markup first, before you start working on this? |
Thanks! I'll holler if I get stuck. |
…review. Now we show it on the containing <div>.
Fixes #1891: Get form working on refactor branch.
this was merged. |
…review. Now we show it on the containing <div>.
Refactor following:
https://github.com/webcompat/webcompat.com/blob/master/webcompat/templates/home-page/form.html
with:
The form in http://webcompat.github.io/design/
Please be aware to add the placeholders for links as they are in the old templates.
Left do do:
The text was updated successfully, but these errors were encountered: