Repository navigation
feat: create modal footer compound component - #2672
Merged
Merged
Conversation
|
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
marked this pull request as ready for review
February 4, 2025 23:04
artursantiago
requested review from
eduardoformiga and
renatomaurovtex
and removed request for
a team
February 4, 2025 23:04
matheusps
reviewed
Feb 5, 2025
matheusps
left a comment
Contributor
There was a problem hiding this comment.
Can you use the storybook package to create the component view?
Contributor
Author
@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 |
Guilera
force-pushed
the
feat/modal-footer
branch
from
February 14, 2025 14:01
d074b1b to
0f7aeef
Compare
pedromtec
approved these changes
Feb 17, 2025
pedromtec
reviewed
Feb 17, 2025
|
|
||
| // 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%); |
Contributor
There was a problem hiding this comment.
question: Are these values correct?
Contributor
Author
Contributor
There was a problem hiding this comment.
We can leave it like that for now.
Contributor
hellofanny
approved these changes
Feb 17, 2025
Contributor
|
@mariana-caetano let's update the doc with these new tokens for modal footer. Request doc. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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 passdirectionprop to it, and it can beverticalorhorizontaland it ishorizontalby default.How to test it?
Starters Deploy Preview
Preview
References
JIRA TASK: SFS-2080
Figma