Skip to content

[v4] style updates - #211

Merged
katydecorah merged 22 commits into
version4from
version4-design-updates
Mar 21, 2019
Merged

katydecorah merged 22 commits into
version4from
version4-design-updates

Conversation

@katydecorah

@katydecorah katydecorah commented Mar 15, 2019 •

Copy link
Copy Markdown
Contributor
  • briefly describe the changes in this PR
  • update CHANGELOG.md with changes under master heading before merging

This PR brings the UI up-to-date with Assembly, while maintaining minimal styling so developers can readily theme the controls fixes #209 fixes #167

To do

Input:

  • Use Assembly icons for search 🔍, close ❌, and loader ♻️
  • Add “Open Sans” to font stack
  • Increase input font-size to at least 15px to improve legibility
  • Adjust input padding to match Assembly 6px 12px
  • Use border-radius 4px to match Assembly, this is also the same border-radius used by GL buttons

Results:

  • Increase font-size to at least 13px to improve legibility
  • Adjust padding to match Assembly 6px 12px or add more y padding and remove border-bottom.
  • Add 3px or 6px between the bottom of input and top of search results or turn off border-bottom on input when displaying results to join the input and the results seamlessly (ref Minor styling suggestion when dropdown is open #167).
  • Should we present result in more than one line or continue with single line?

Clean up:

  • Double check CSS to make sure every line is in use

@kbauhaus I was thinking we could work on styling the results during our pairing session today

@katydecorah
katydecorah force-pushed the version4-design-updates branch from 3711b09 to 5dc8049 Compare March 15, 2019 20:26
@katydecorah
katydecorah requested a review from samanpwbb March 18, 2019 13:54
@katydecorah
katydecorah marked this pull request as ready for review March 18, 2019 13:55
@katydecorah katydecorah changed the title [work in progress] [v4] style updates [v4] style updates Mar 19, 2019

@samanpwbb samanpwbb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes generally look good, left a few comments. While running this PR I noticed that I can no longer tab or arrow through results. Is this a known issue?

Comment thread lib/mapbox-gl-geocoder.css Resolved
Comment thread lib/mapbox-gl-geocoder.css Resolved
Comment thread lib/index.js Resolved
Comment thread lib/mapbox-gl-geocoder.css Resolved
Comment thread lib/mapbox-gl-geocoder.css Resolved
@katydecorah

Copy link
Copy Markdown
Contributor Author

@samanpwbb thanks for the review! I believe I've resolved all your suggestions 🙇‍♀️

While running this PR I noticed that I can no longer tab or arrow through results. Is this a known issue

Yes! It will be fixed in #220

Katy DeCorah added 2 commits March 20, 2019 15:56
* version4: (37 commits)
  fix focus trap (#220)
  add `npm run docs` step to template (#221)
  Fix typo in documentation
  additional properties existance check
  Ensure properties exist prior to checking id
  respond to @katydecorah 's code review comments
  update changelog
  deduplicate result event emissions
  update changelog
  remove use of hardcoded feature IDs
  update outdated packages with npm update
  update changelog
  Bump insecure dev dependencies
  tests for options.flyTo
  update changelog
  bump suggestions to v1.3.4
  Update changelog
  update jsdoc and api docs
  pass flyTo options to map upon selection
  extend eslint, add precommit hook (#210)
  ...
@scottsfarley93

Copy link
Copy Markdown

Changes look good to me! Overall I really like new look/feel.

Not sure if it's in scope for this PR, but I do find it's quite hard to read long-named place names. I see Should we present result in more than one line or continue with single line? on the outline of changes above. If we don't make a change in this PR to improve legibility of many-character names, let's open a ticket and tackle it later.

Screen Shot 2019-03-20 at 1 28 42 PM

@samanpwbb samanpwbb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@samanpwbb

samanpwbb commented Mar 20, 2019 •

Copy link
Copy Markdown
Contributor

If we don't make a change in this PR to improve legibility of many-character names, let's open a ticket and tackle it later.

Studio uses the primary name on one line and then full address on the preceding line. From a legibility POV I do think this would be best. The current design does work too though imo.

Screen Shot 2019-03-20 at 2 04 32 PM

@katydecorah

Copy link
Copy Markdown
Contributor Author

Multiline is the way to go 👍 I think it makes sense to use the custom work in #208 to set a default render as multiline text. I'll finish up that change in this PR.

Katy DeCorah added 2 commits March 20, 2019 19:02
* version4:
  [email protected]
  Update jsdoc strings
  add get/set functions
  expose render and getItemValue functions as constructor options
@andrewharvey andrewharvey added this to the v4.0.0 milestone Mar 21, 2019
@katydecorah

Copy link
Copy Markdown
Contributor Author

Latest commit adds a default render function to create multiline results:

image

@andrewharvey

Copy link
Copy Markdown
Collaborator

looking very nice @katydecorah .

How about setting the css to end overflowing text with ..., it's visually a bit nicer and tells the user some text is hidden.

@katydecorah

Copy link
Copy Markdown
Contributor Author

image

setting the css to end overflowing text with ..

@andrewharvey good catch! Added ✅

@scottsfarley93 scottsfarley93 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 looks good!

* version4:
  fixes double moveend event #131
@katydecorah
katydecorah merged commit 4c31226 into version4 Mar 21, 2019
@katydecorah
katydecorah deleted the version4-design-updates branch March 21, 2019 22:50
@andrewharvey

Copy link
Copy Markdown
Collaborator

@katydecorah Just checking, is there meant to be this grey box on the clear button?

Screenshot from 2019-03-22 12-11-52

I also noticed that the loading circle will overlap the clear x, but it's not a big deal.

@katydecorah

Copy link
Copy Markdown
Contributor Author

@andrewharvey oh shoot, thanks for flagging. I'll get that fixed in another PR 🙇‍♀️

katydecorah pushed a commit that referenced this pull request Mar 22, 2019
* version4:
  reset this.lastSelected on clear (#224)
  [v4] style updates (#211)
  [v4] create collapsed option (#222)
  fixes double moveend event #131
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

Successfully merging this pull request may close these issues.

4 participants