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

GN-4482: color-selector UX - make button bigger and more easily clickable #966

Merged
merged 5 commits into from
Sep 6, 2023

Conversation

x-m-el
Copy link
Contributor

@x-m-el x-m-el commented Sep 6, 2023

Overview

Feedback embeddable:
The color picker has too small buttons to click (the round color buttons).

This is fixed in two ways:

  • make color-circles (buttons) a bit bigger, but keeping the general look
  • increase clickable space for color-circles outside of the button.
connected issues and PRs:

https://binnenland.atlassian.net/browse/GN-4482 : Highlight color picker

How to test/reproduce

open the color picker (in the toolbar).
Before: had to perfectly click the circle.
Now: there is some leeway to click a button.

Note that clicking should always be what is show with a black circle and there should be no weird "bugs".

Challenges/uncertainties

To make the space to click bigger, a small "css hack" is used by using an element with ::before. This is a well known way to do this.
The margins and placement of the element didn't seem to make a ton of sense (but definitely partially me not being a CSS wizard yet :) ). So I mostly got the values via trail&error.
The placement is also not centered, but more to the right, which I think is the typical way to support something like this, but I'm not sure.

@abeforgit abeforgit enabled auto-merge September 6, 2023 14:15
@abeforgit abeforgit merged commit 69b3f8b into master Sep 6, 2023
@abeforgit abeforgit deleted the embeddable-feedback-better-clickable-color-picker branch September 6, 2023 14:54
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.

2 participants