Skip to content

Poll expiration close button is off center and ugly #2106

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

Open
huumn opened this issue Apr 15, 2025 · 2 comments
Open

Poll expiration close button is off center and ugly #2106

huumn opened this issue Apr 15, 2025 · 2 comments

Comments

@huumn
Copy link
Member

huumn commented Apr 15, 2025

Image
@SouthKoreaLN
Copy link
Contributor

Here is an attempt addressing the "off-center" part, and a brief change in how it responds when hovering over it, both in light and dark mode. I noticed several of your buttons have hover effect. I use grey from the input-placeholder-color in this file.

Image Image Image Image

I added this to global/globals.scss.

.react-datepicker__close-icon {
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  right: 0.2rem;
  font-size: 1rem;
  color: $input-placeholder-color;
  opacity: 0.6;
  cursor: pointer;
} 
  
.react-datepicker__close-icon:hover {
  opacity: 0.85;
  color: $dark;
} 

For the ugliness, let me check a bit more. First time playing with ui/ux stuff.

@aliceandthewonderland
Copy link

aliceandthewonderland commented Apr 22, 2025

just checked with browser inspector,

under .react-datepicker__close-icon::after,

replacing this

padding: 2px;

to

padding-bottom: 2px;

may fix the issue like below??

img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants