Is there any intention on aligning the form input styles between the old React and the new web components?
I’m trying to adopt the new components where and when we can but because of the style differences, if we use an old React one we have to use them for everything because of the style differences.
For example, the differences in the above picture:
Text field
Label - Font size (13px vs 12px)
Label - Line height (20px vs 16px)
Help text - Font size (13px vs 12px)
Help text - Line height (20px vs 16px)
Help text - Colour (rgb(48, 48, 48) vs rgb(97, 97, 97))
Checkbox
Labels are the same between old and new
Help text - Same differences as above
If these were aligned then even if we have to use an old component (like for the label action) it would mean we could still use the new one everywhere else
Hey @DanGamble - no worries, happy to take a look. It does seem like the style mismatch between the two versions is happening there. I’m not sure if this is intentional. I’ll reach out to some folks internally to see if I can share any more info and flag this - appreciate you reaching out!
Thanks folks, and thanks @bakura10 for the note on s-choice-list. Still waiting for further updates on this, but I’ve passed along the additional info to the team, I’ll loop back here with you once I have more info for you all.
Hey folks, just looping back here with some info. At the moment, there is an intentional difference, and the web components represent the new design language vs the old style for Polaris. There will be other possible scenarios where web components will differ from the React version as well, as I’m sure you folks have encountered, but I did just want to mention this as a possibility.
That said, if you folks were open to sharing if you’re encountering any feature gaps related to the style differences, I’m happy to look into this further with you and see if we can look at this internally on your behalf.
Sounds good @DanGamble - I’ll keep this thread as “unresolved” for the time being, so just ping me here if I can help out with anything else on our end