Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add title and description props and slots for Modal #498

Merged
merged 5 commits into from
Aug 22, 2023

Conversation

TGlide
Copy link
Contributor

@TGlide TGlide commented Aug 9, 2023

What does this PR do?

Refactors Modal to allow title and description in header, just like in Pink.

I also opted to allow a prop instead of a slot, while keeping the slot as an option. The prop is autocompletable, unlike the slot, and is much simpler to write than <svelte:fragment slot="title>. The slot should remain though IMo in cases where you want to add HTML elements rather than just text.

This refactors most Modals to use the prop syntax.

Test Plan

Manual

Related PRs and Issues

Based on #479

Have you read the Contributing Guidelines on issues?

Yes

@TGlide TGlide added the enhancement New feature or request label Aug 9, 2023
@TGlide TGlide requested a review from ArmanNik August 9, 2023 18:05
@TGlide TGlide self-assigned this Aug 9, 2023
@vercel
Copy link

vercel bot commented Aug 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2023 5:05pm
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2023 5:05pm
console-next ❌ Failed (Inspect) Aug 22, 2023 5:05pm
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2023 5:05pm

@ArmanNik ArmanNik changed the base branch from command-center-and-migrations to 1.4.x August 22, 2023 16:12
Copy link
Member

@ArmanNik ArmanNik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to refactor all remaining modals introduced after this PR 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants