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

White Flags on White Background #73

Closed
davidjsilva opened this issue Jun 10, 2021 · 7 comments
Closed

White Flags on White Background #73

davidjsilva opened this issue Jun 10, 2021 · 7 comments

Comments

@davidjsilva
Copy link

davidjsilva commented Jun 10, 2021

Flags that have white backgrounds such as Japan, Monaco, Madagascar
white background flags
(and many others) do not look like flags when displayed on white backgrounds. We wanted to add some slight elevation to the flags by adding a box shadow. However, upon looking closely at flags.png, not all the flags are of equal width making the box-shadow look inconsistent. And this is not even taking into account the 3px white space on the left and right sides (why do you need that?) which I had to account for as well.
flags with boxshadow whitespace

My suggestion is 3 things:

  1. Can we make all the flags the same width in flags.png
  2. Can we remove the white space in the left and right sides
  3. Make elevation (box shadow) a prop??

At the very least #1 would be required. #2 can be handled by css on my end if you don't agree.

@ubaldop
Copy link
Owner

ubaldop commented Jun 10, 2021

Hello, thanks for reporting this. Your proposals make sense. Probably I will have some spare time to work on this during the weekend.
If you need them earlier, please consider to open a PR :)

@davidjsilva
Copy link
Author

@p3trur0 just wanted to follow up on this. Any progress?

@ubaldop
Copy link
Owner

ubaldop commented Jul 8, 2021

hello @davidjsilva sorry for being late on this, but these months are harsh for me. 😢
I'll try to find some spare time to fix this by the end of July.

@ubaldop
Copy link
Owner

ubaldop commented Jul 12, 2021

@davidjsilva I released an updated version of the component, namely v2.2.0. It now supports a shadow property adding a box shadow around the flags.

Also, all the left and right whitespaces around the flags have been removed. All the flags now have the same width.

Please, keep me updated if this improvement is suitable for your needs.

Thank you for opening this!

@davidjsilva
Copy link
Author

Looks great thank you! I do think the shadow can be "softer" though. I really like how VuetifyJS does it. They have css helpers called Elevation

https://vuetifyjs.com/en/styles/elevation/

They use Alpha's in the rgba to soften the shadow and use different values on each side:

box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%) !important

image

on the left I used an elevation-4 but on the right it's your shadow. I feel like the #333 shadow on each side is a lil harsh. But it's up to you. Thanks for the update!

@ubaldop
Copy link
Owner

ubaldop commented Jul 16, 2021

@davidjsilva glad it helped. Actually you're right about the better style of your proposal. Alas, at the moment I have not enough time to spend on this. Would you like to open a PR about it, please?

@ubaldop
Copy link
Owner

ubaldop commented Nov 22, 2021

@davidjsilva eventually I had a chance to work on this codebase again, so I introduced the box shadowing following your suggestion. Please, have a look to latest 2.3.1 😄

@ubaldop ubaldop closed this as completed Nov 22, 2021
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

No branches or pull requests

2 participants