Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Create a container for JSONArrow for easier clickability/UX #33

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

axelson
Copy link
Contributor

@axelson axelson commented Feb 22, 2016

I've been using redux dev tools (via the extension) for a couple weeks now and it's always been overly difficult to click on the JSONArrow to expand/collapse the node. It is only after inspecting the extensions that I realized that you can click on the label as well.

Previously it was difficult to tell that you could click on the label because there is no visual indicator that you can click on it. Ideally there would be an actual visual change as well but inline styles don't support :hover so it doesn't appear to be possible to me without changing how this project is structured or consumed (or with mouseover/mouseout which was too invasive for this first change).

So the solution I developed was to add a container with padding to JSONArrow and add cursor: pointer. I believe that this will help the usability of react-json-tree and redux dev tools.

@axelson
Copy link
Contributor Author

axelson commented Mar 16, 2016

Any interest in this? I think it's a large usability gain

chibicode added a commit that referenced this pull request Mar 17, 2016
Create a container for JSONArrow for easier clickability/UX
@chibicode chibicode merged commit 2d8aa5e into alexkuz:master Mar 17, 2016
@chibicode
Copy link
Contributor

@axelson great work, thank you!

@chibicode
Copy link
Contributor

Published as 0.6.1

@axelson
Copy link
Contributor Author

axelson commented Mar 18, 2016

@chibicode thanks! 👍

@axelson axelson deleted the easier-click branch March 18, 2016 19:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants