Anthony Frehner 🐽

968 posts

Anthony Frehner 🐽

Anthony Frehner 🐽

@frehner_a

Human, React dev, JS tooling fan, occasional speaker, probably an imposter. https://t.co/DMaYqlmKkU He/Him. Working at @shopify

Katılım Kasım 2012
398 Takip Edilen631 Takipçiler
Sabitlenmiş Tweet
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
Shopify Polaris is now built on web components. My team and I have been working on this for a while and it's been a lot of fun to "embrace the platform"! shopify.dev/beta/next-gen-… Lots of things learned, lots of fun edge cases discovered
English
5
6
13
889
Kirill Platonov | Platmart
Kirill Platonov | Platmart@kirplatonov·
Just made a quick video for @ShopifyDevs about new Modal web component in Polaris. 🤌 Let me know if you want more videos like this!
English
7
2
59
4.9K
Anthony Frehner 🐽 retweetledi
David Cameron
David Cameron@dave_cameron·
🚀 New Polaris web components are here! ColorField, ColorPicker, Popover, Tooltip, Menu, Chip, ClickableChip & DropZone shopify.dev/changelog/new-…
English
10
19
117
9.1K
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@jenseng MF is a love letter to webpack; if you love webpack, it’s an excuse to add even more of it all over every repo! Haha.
English
0
0
1
23
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@nunofx3 @kirplatonov Thanks for testing them out! Very unlikely that what we have in there at this moment changes besides bug fixes or additions; the experimental name is a safe-guard to allow us to make changes if necessary, but so far nothing has come up yet. We're just being cautious for v1
English
0
0
2
57
Nuno
Nuno@nunofx3·
@kirplatonov It's brilliant, already have several changes ready in dev. The only thing that doesn't make me comfortable moving them to prod is the "experimental" on the name.
English
2
0
1
146
Kirill Platonov | Platmart
Kirill Platonov | Platmart@kirplatonov·
Polaris Web Components have isolated styles. It's a very good news for apps migration. In this example I use new web component inside old Polaris ViewComponent page. No styles conflicts at all 👌
Kirill Platonov | Platmart tweet media
English
2
0
39
2.2K
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@kinngh We've also tried to ensure that React <=18 is natively supported without a "react wrapper" as well, thanks largely in part to some hackery from @_developit
English
0
0
2
22
Harshdeep Singh Hura
Harshdeep Singh Hura@kinngh·
[opinion] I've been using Polaris WC for a decent while and can confirm it's headed in the right direction. Yes there's a whole lotta things that still need to come in, but it's in RC and open for folks to play around with and give feedback on. As a React dev, it was frustrating at first to not have Reacty feel to it, but after 3-4 days of reading and playing around with it, I realized that us as React devs build things in a different way. Yes, the migration may feel a little awkward but just stick with it and you'll feel great about it. The great thing is you can use Polaris React with Polaris WC in the same component, so you can migrate slowly but since it's in RC and you're technically loading the experimental version I wouldn't recommend shipping it to Production just yet, but a staging / dev env where you're slowly migrating as and when you have time, would be great. I know this is a huge win for PHP and RoR devs (along with every other non-React dev), but the WC is equally as good for us React devs too. React 19 added way better support for WC and there hasn't been a better time to align with vanilla web standards instead of going after proprietary wrappers^^
English
1
0
18
882
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@ryanleichty @jaffathecake We've (and by "we" I mostly mean "Jake") had to build some utilities to help with certain situations such as "s-table only accepts s-table-body components" and "s-choicelist needs to rerender when an s-choice attribute changes". Generally using MutationObservers and stuff
English
0
0
1
26
Ryan Leichty
Ryan Leichty@ryanleichty·
@frehner_a @jaffathecake If you're using the shadow dom and shared styles are now possible, that might solve most of the hangups I had. Have you had any issues or annoying problems with composition?
English
1
0
0
26
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
Shopify Polaris is now built on web components. My team and I have been working on this for a while and it's been a lot of fun to "embrace the platform"! shopify.dev/beta/next-gen-… Lots of things learned, lots of fun edge cases discovered
English
5
6
13
889
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@ryanleichty Oh yeah sorry for the confusion! Yeah they have worked great for us; we apply a minimal amount of styles to all components globally, and every component adopts that stylesheet. Then additionally the styles for each component are (mostly) adopted as well, so even if there are
English
1
0
1
14
Ryan Leichty
Ryan Leichty@ryanleichty·
@frehner_a Woah, it looks like that's relatively new 👀 I just saw your codepen where you're using it too. That seems to solve the problem of sharing styles in the shadow dom if I'm understanding it correctly codepen.io/afrehner/pen/r…
English
1
0
0
15
Anthony Frehner 🐽 retweetledi
Alex Page
Alex Page@alexpage_·
Headline: "Polaris—unified and for the web" The work: - Align components across multiple teams w focus on web - Extremely light "in-house" framework - Automatic updates for Apps - Maintain or exceed UX quality - Docs, templates, CLI - AI, MCP - "Polaris" So much more to come
English
6
7
54
19.9K
Alex Abbott
Alex Abbott@devwithalex·
I've been playing with the new Polaris web components and it's not perfect but I actually love that it's now a unified component system to be used across apps + extensions I'll also be updating Polaris Components & Dezi ASAP to include web components so keep an eye out!
English
2
0
16
499
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@ryanleichty Ha, maybe! @jaffathecake would probably end up being the one to do that if we did. There are some annoyances we've found in certain areas, but we hope to improve the web platform itself to make it better for everyone, while working around it. But feel free to ask anything here
English
1
0
0
29
Ryan Leichty
Ryan Leichty@ryanleichty·
@frehner_a That makes sense given the context. Are you thinking of writing up a blog post or anything detailing some of the things you found, pain points you encountered, etc.?
English
1
0
0
26
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@ryanleichty is both custom to that instance of the component and also is defined by the dev. For example: `container (inline-size > 500px) large, small` will translate into a container query internally
English
0
0
1
27
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@ryanleichty We control all the styles, so we use Adopted Style Sheets for the majority of the CSS styles. In some cases we inline a <style> tag in the shadow dom when necessary; for example, we have a custom syntax that allows for different values depending on a container query, and that
English
2
0
1
39
Anthony Frehner 🐽
Anthony Frehner 🐽@frehner_a·
@ryanleichty but can't crazily customize the styling themselves, which was another limitation that non-WCs have. Ultimately, it just worked out great for us for this use-case. But it's understandable that WCs that want to allow greater amounts of customization could feel restricted here
English
2
0
2
34