-
Notifications
You must be signed in to change notification settings - Fork 18
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
[DDW-337] fix select arrow styling to allow color overrides #68
Conversation
@DominikGuzei is this PR ready for review? |
@nikolaglumac yes but i wanted to test it with Daedalus before … btw. this is the issue with only using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DominikGuzei I have tested your fix in Daedalus and I can confirm that now the inactive state is fine (arrow is correctly positioned and has correct color). However, when the select is active/open then the arrow is no longer vertically centered and has wrong color (the color part could be that we are just missing the correct css variable on Daedalus side). Thanks for looking into this!
@nikolaglumac yes this PR was never integrated into Daedalus ;) will look into that now |
@nikolaglumac @MarcusHurney i fixed the small issue with the vertical centering of the select arrow … and on the way i found a much bigger issue with broken bubble positioning for selects that open upward. The reason basically is that the previous bubble code assumed that it can always position itself based on the parent node … which is very fragile because (as it obviously happened in a recent refactor to refs) the DOM of the parent can change in many ways. So i introduced a new (optional) |
@nikolaglumac you can also test the fix in Daedalus now: input-output-hk/daedalus@73abd1d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @DominikGuzei 🎉
I have tested it in Daedalus (as you suggested) and it is working perfectly 👌
This PR fixes the css implementation of the select arrow to allow to define the color of the icon without having to reach into the SVG (which is not possible if only rendered with CSS because it's not part of the DOM).
Additional changes: