polaris icon indicating copy to clipboard operation
polaris copied to clipboard

[TextField] Long prefix crowds and overflows field on mobile screen widths

Open maxariss opened this issue 8 years ago • 3 comments

Issue summary

If a lengthy value is provided to the TextField's prefix prop, on slim viewports, the prefix (understandably) crowds the input, but also overflows the input.

Expected behavior

  • Perhaps different UX for long prefixes ? (example, urls)
  • No overflow outside of the input

Steps to reproduce the problem

  1. Open a collection page
  2. Edit the collection's SEO values
  3. Shrink the viewport until overflow is visible

Screenshot from the styleguide

screen shot 2018-11-29 at 1 23 42 pm

Screenshot from the admin

screen shot 2018-11-29 at 1 26 52 pm

maxariss avatar Nov 29 '18 18:11 maxariss

We should probably do the same as rails component and add overflow hidden here but I'm not sure we should be doing anything the the design. In this case I think prefix might not be the best solution to this problem. @sarahill thoughts on this?

dleroux avatar Nov 30 '18 16:11 dleroux

Yea, I agree with @dleroux. Using a prefix here doesn't feel like the best solution.

This needs some more thought but something like the below example could work. screen shot 2018-11-30 at 12 24 49 pm

sarahill avatar Nov 30 '18 17:11 sarahill

This issue has been inactive for 180 days and labeled with Icebox. It will be closed in 7 days if there is no further activity.

ghost avatar Oct 15 '19 22:10 ghost