Skip to content
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

Use the "placeholder" attribute on the "input" tag #84

Closed
nixta opened this issue Apr 12, 2017 · 5 comments
Closed

Use the "placeholder" attribute on the "input" tag #84

nixta opened this issue Apr 12, 2017 · 5 comments
Assignees

Comments

@nixta
Copy link
Member

nixta commented Apr 12, 2017

There are a few nasty UI conflicts because the greyed out "Search by topic..." placeholder behavior is implemented by controlling the input field's value attribute.

To reproduce:

  1. Enter some text (e.g. runtime).
  2. Select a topic bubble (e.g. runtime).
  3. Dismiss the topic bubble.
  4. Start typing again.

2 issues seen. In both the following screenshots, I typed runtime again once the topic bubble had been dismissed.

  1. The text is just appended to the placeholder.

unknown

  1. The placeholder disappears, but so does the start of the next text you type. Here it got as far as showing Search by topic...ru before the text was cleared, leaving only the ntime of runtime.

unknown-1

The input tag used for search should be showing Search by topic... as a placeholder attribute, not the value attribute.

jf990 added a commit to jf990/esri.github.io that referenced this issue Apr 15, 2017
@jf990
Copy link
Contributor

jf990 commented Apr 15, 2017

@nixta i was not able to tag you as a reviewer, can you test my branch and see if I addressed this? the UI is a bit different now but it seems to be something more intuitive.

@jf990 jf990 self-assigned this Apr 15, 2017
jgravois added a commit that referenced this issue Apr 17, 2017
@nixta
Copy link
Member Author

nixta commented Apr 17, 2017

Yeah, works much better. Nice work.

I think we should fix up the CSS before we release though. Seems the CSS from the old chosen library was just copied wholesale into our home.css and there isn't a proper match now. Should mostly be some overrides for the bubble sizes and backgrounds, and the chooser line height.

@alaframboise might have some insight here, but it was so long ago I wouldn't be surprised if that information has been flushed.

Cheers,

Nick.

@nixta
Copy link
Member Author

nixta commented Apr 17, 2017

Hmmm. I must be a foreigner in this repo. I can't assign myself, but I'll take a stab at updating the CSS.

@jgravois
Copy link

I must be a foreigner in this repo.

not anymore. you've earned the 🔑s

@nixta
Copy link
Member Author

nixta commented Apr 18, 2017

PR #99 submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants