viclafouch / mui-tel-input

📌 A phone number input designed for MUI (Material ui) V6 built with libphonenumber-js
https://viclafouch.github.io/mui-tel-input
MIT License
158 stars 65 forks source link

Expose flagImage className #129

Closed spicattutti closed 6 months ago

spicattutti commented 6 months ago

Adds to https://github.com/viclafouch/mui-tel-input/pull/128. Now consumers don't have to select the image within the flag using potentially unsafe selectors (that might break over time) but can use a constant. Sharpens namings on exposed classes: classes.flag becomes flagContainer, to express that the span around the img is targeted

BEFORE AFTER
image image
spicattutti commented 6 months ago

sorry by providing the solution in 2 chunks. When integrating the lib change, I realized I did not fully solve the problem described in #116

viclafouch commented 6 months ago

sorry by providing the solution in 2 chunks. When integrating the lib change, I realized I did not fully solve the problem described in #116

No worries, thanks for your work ;)