Skip to content

Conversation

@benlife5
Copy link
Contributor

Updates EventSection to use a slot component for the section heading text. Refactors HeadingText to include an align prop and organize props into data/styles

Will update the rest of EventSection (+tests) in separate PR but heading will be a shared component

Used a SlotsCategory because it seems like resolvePermissions doesn't support checking if the component is in a slot or not. Will start a thread with the Puck team because that would be easier.

Screen.Recording.2025-09-29.at.1.52.10.PM.mov

@benlife5
Copy link
Contributor Author

At the risk of merge conflicts, I'm thinking we may want to have a separate branch for these changes in case we want/need to push out other fixes before the whole set of slot changes is ready

@asanehisa
Copy link
Contributor

asanehisa commented Sep 29, 2025

At the risk of merge conflicts, I'm thinking we may want to have a separate branch for these changes in case we want/need to push out other fixes before the whole set of slot changes is ready

agree. then it's easier to ship smaller bits at a time too so multiple people can work on slots. How's https://github.com/yext/visual-editor/tree/fall-2025-slot-ify-components

@benlife5 benlife5 changed the base branch from main to fall-2025-slot-ify-components September 29, 2025 18:24
@benlife5 benlife5 requested a review from asanehisa September 29, 2025 19:23
@benlife5 benlife5 merged commit 7a67734 into fall-2025-slot-ify-components Sep 29, 2025
26 of 28 checks passed
@benlife5 benlife5 deleted the heading-text-slot branch September 29, 2025 20:45
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

Successfully merging this pull request may close these issues.

4 participants