-
Notifications
You must be signed in to change notification settings - Fork 192
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
Issue #867 - UI for including screenshot in bug report #893
Conversation
<div class="wc-Form-upload-icon" aria-hidden="true"> | ||
<span class="wc-Icon wc-Icon--cloud-upload"></span> | ||
</div> | ||
{{ form.image.label(class_='wc-Form-label wc-Form-label--upload') }} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Whoa, speedy. ⚡ Will play with this in a bit. |
This looks awesome @magsout. I'm gonna add an image preview via |
4437cf4
to
77e8020
Compare
(that push was just to rebase against master) |
@miketaylr we can improve UX before merge if you want. Not a big deal. |
@magsout if you have any suggestions, feel free to hack on them. I don't really have any amazing ideas, hence my "let's do it later". :p When you get a chance, can you review the JS part? |
I think I have one idea, let me try to come up with a quick mockup. |
Here's one idea, stealing from the original design: Once we have the upload image read and the background-image set, we hide the label w/ icon and show a yellow bar on the bottom with a link "Click here to remove image" (I guess it would technically be a button, but I think styling as a link would be good). Once the user clicks that, we remove the bg-image, clear out the file input, and show the original "Upload screenshot image"> We could re-use that same bottom bar for the add-on use case where a user needs to check the checkbox (something like "[ ] Select to include screenshot image") What do you think? |
r? @magsout what do you think? |
wooot @miketaylr awesome 👍 |
Yay, thanks for cleaning up my markup/CSS ^_^. Let me try to reproduce that error, it's kinda wierd. |
Ah, the weird view function error is because it's a button -- it's trying to submit or navigate or something. Will sprinkle some JS to fix it, then merge. |
Or just use regular HTML |
Ah yes, I writed |
Issue #867 - UI for including screenshot in bug report
Ok, so @miketaylr