jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers. React and Vue components also included.
https://intl-tel-input.com
MIT License
7.69k stars 1.95k forks source link

New flag build system for consistent flag images #1750

Closed bgb10 closed 3 months ago

bgb10 commented 3 months ago

(Made new PR due to merge conflict, existing one is #1729) PR for Issue #1668

Screenshot 2024-08-17 at 9 07 53 PM

Run npm run build:img and npm run build:css for checking differences.

jackocnr commented 3 months ago

Thank you so much! This is incredible work 🎉

The new build task works perfectly, as well as the new images/CSS. Amazing.

Some feedback:

Also some non-blocking feedback (could be done in a follow-up PR if need be):

Thanks again for your excellent contribution!

bgb10 commented 3 months ago

Hi John, nice to see you! It seems like we meet often.

Done necessary tasks:

jackocnr commented 3 months ago

Amazing work, thanks again @bgb10 !!!

Q. I think there's no fallback logic for browsers that don't support .webp. If that's the case, I think it would be appropriate to create a separate issue for this. (using image-set in .scss)

I don't think it's worth us doing anything here - this only applies to a tiny subset of users who have to use legacy systems. I would just say in those cases they can manually update the CSS to point to the PNG files.

I think it would be better to quickly provide users with consistent flag sizes, and documentation or refactoring can be done later.

Completely agree. I've manually rebased and merged your commits (just to remove the need for that merge commit). I'll update the docs myself today.

So I think the 3 remaining tasks, for a follow-up PR, are:

Thanks again Gwanbin, it's amazing to finally have consistent flag images! 💐

jackocnr commented 3 months ago

Released in v24.0.0 🎉

jackocnr commented 3 months ago

I've now implemented all 3 of those TODOs listed above (see v24.0.2)