Skip to content

feat: create modal footer compound component - #2672

Merged
hellofanny merged 1 commit into
mainfrom
feat/modal-footer
Feb 17, 2025
Merged

hellofanny merged 1 commit into
mainfrom
feat/modal-footer

Conversation

@artursantiago

@artursantiago artursantiago commented Feb 4, 2025 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

This pull request adds the ModalFooter compound component. This component will be used inside the Modal in initially in the Modal to add a new review in the new Reviews and Ratings section.

How does it work?

You need to use <ModalFooter /> inside the Modal and pass to it action buttons. The ModalFooter is already spacing out the buttons and is wrapping by default. You can pass direction prop to it, and it can be vertical or horizontal and it is horizontal by default.

How to test it?

Starters Deploy Preview

Preview

References

JIRA TASK: SFS-2080

Figma

@codesandbox-ci

codesandbox-ci Bot commented Feb 4, 2025 •

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@artursantiago
artursantiago marked this pull request as ready for review February 4, 2025 23:04
@artursantiago
artursantiago requested a review from a team as a code owner February 4, 2025 23:04
@artursantiago
artursantiago requested review from eduardoformiga and renatomaurovtex and removed request for a team February 4, 2025 23:04
@artursantiago artursantiago self-assigned this Feb 4, 2025
@artursantiago artursantiago added the enhancement New feature or request label Feb 4, 2025

@matheusps matheusps left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you use the storybook package to create the component view?

@artursantiago

Copy link
Copy Markdown
Contributor Author

Can you use the storybook package to create the component view?

@matheusps I just add the fixed preview link in the PR description. See it and tell me if its enough for you to review or you still need the storybook


// Footer
--fs-modal-footer-padding : var(--fs-spacing-3) 0 var(--fs-spacing-3);
--fs-modal-footer-box-shadow : 0 -1px 15px 0 rgb(0 0 0 / 10.2%);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question: Are these values correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Those are the values been used in the figma. But it doesn'y have any token with it. What you guys do in this case?

image

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can leave it like that for now.

@hellofanny

Copy link
Copy Markdown
Contributor

@mariana-caetano let's update the doc with these new tokens for modal footer. Request doc.

@hellofanny
hellofanny merged commit 1a55c95 into main Feb 17, 2025
@hellofanny
hellofanny deleted the feat/modal-footer branch February 17, 2025 19:35
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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants