-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Re-add multi-line placeholder for user invite in onboarding flow #5459
Comments
👍 I think JS might be the way to go. I checked out some of the other "Invite your friends" UXs and they seem to do similar things as the Google Drive modal: The delimiter here are spaces, commas & semicolons. After which, they get sent to the server as an array of emails. It feels much cleaner that way. Thoughts? |
@kowsheek: Great idea! I think maybe we'd prefer to keep the functionality of one-line-per email as that's already setup so unfortunately something like the Google Drive modal would be a no-go. I have been messing around with a few different approaches and it seems that there's not much in terms of options that work across platforms.
|
What do you think of this JQuery module? |
Did I dream someone saying there was a CSS only way to do the background image? Maybe that was in slack? |
@ErisDS Inspired by your comment, just tried it css only and got it half working. <textarea class="test"> textarea[class=test] {
background: url(http://placebacon.net/100/100);
}
textarea[class=test]:focus {
background-image: none;
} When you load a page with this code, you see a textarea with the image in it, if you click on it, the image disappears and the cursor is there. When you click outside, the image is back in. But if you click, write text in it and click outside, the text is in the textbox and the image is also there, in the background :(. |
@ErisDS That was myself in slack:
Which doesn't present the issues talked about in @hoxoa's comment |
While the CSS background is a decent idea for now, I feel we'd have to revisit this later and reimplement. The fact that we're having to go in a round-about way on this points that the approach isn't the best. |
I'm not sure that this is an appropriate use of |
@JohnONolan I've done a very quick codepen with the proposed background solution: http://codepen.io/lukaszklis/pen/xGYZEG (CSS + JS). This is not the best way of solving this, as placeholders behave differently in browsers. Webkit/Gecko engines will still display the placeholder until you start typing, on IE the placeholder would disappear completely. By default, every form control that doesn't have Moreover, IE9 doesn't support |
That is very cool indeed, and we don't support IE9, so no issues there. +1 from me 👍 |
Due to a problem with compiling the template, we had to remove the multiline placeholder for setup users. See #5454 and the PR #5455, for where this got removed.
Having a multiline placeholder on the user invite textarea in the onboarding flow is part of the spec - it's an important UX detail to ensure it's clear that emails should be added on new lines.
There are a number of options for how this could be done, including (but surely not limited to):
It's a fiddly little problem, but one worth solving if we can.
The text was updated successfully, but these errors were encountered: