-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(Modal): add slug to Modal, ComposedModal #15350
Conversation
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aagonzales fixed 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignoring the problems in the gray 10 theme that will hopefully be resolved with v2 visuals, this is good to go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just tested, looks good!
…5350) * feat(Modal): add slug to Modal, ComposedModal * test(snapshot): update snapshots * docs(Slug): add slug to controls table * fix(Modal): remove shadows, use callout gradient * test(snapshot): update snapshots * fix(Modal): adjust background, fix conditional class
Closes #15192
Adds in the
slug
prop toModal
andComposedModal
.Changelog
New
slug
prop added toModal
andComposedModal
slugOverlay
tokens added to provide a lighter overlay in light themesModal
andComposedModal
added to the Examples folder insideSlug
in a storybook. One shows with full-width button (gradient should start at64px
), and the other has 3 buttons (gradient should start at0px
)Changed
ai-gradient
mixin so that the gradient can start at a different value than 0 when buttons are full width inside the modalModal
variants whenslug
is providedRemoved
overflow: hidden
on.cds--modal-container
was causing theslug
to be cut off; Contents inside still seem to scroll properlyQuestions
ai-gradient
, but should it be using thecallout-gradient
that is used inTile
and theSlug
callout?drop-shadow
values directly fromFigma
and mapped them tobox-shadow
, are these correct?Testing / Reviewing
Go to
unstable__slug --> Examples --> Modal
as well asComposedModal
and ensure everything renders as expected