-
Notifications
You must be signed in to change notification settings - Fork 3
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
Selection cannot be seen #2
Comments
I will try to listen for some event and add more opacity to background color. Dunno what event yet.. |
I admittedly havent tried this yet, but what about setting the opacity on the color you use to max of |
I'm thinking about an other solution to fix this problem: |
Update plugin and try it now. It's hiding background if selection occurs. |
Good idea. It sorta works. I would probably take a little different approach, though. You basically need a function that takes one of those nodes and gives you back a screen Also that |
@MoOx I like the idea of a color picker. The little square might be an interesting experiment and work in place of the selection check. |
I've done some code refactoring in last two days and I've started to implement the color square idea. |
You should take a look to this plugin https://github.com/thomaslindstrom/color-picker |
Just a thing: why the square is after the ; ? Because you can have multiple color (eg: linear-gradient definition) |
You're using background color on the color elements. The selection regions are z-index'd below the text, so when the background color is totally opaque, the selection cannot be seen.
I dont have a great solution right now. Maybe the color should be a bit transparent (
.9
?) so something changes when it's selected.Love this package!
The text was updated successfully, but these errors were encountered: