Skip to content

Commit

Permalink
fix(Modal): adjust background, fix conditional class
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Dec 8, 2023
1 parent 275db7b commit b27a526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ const ComposedModal = React.forwardRef<HTMLDivElement, ComposedModalProps>(
const modalClass = cx(
`${prefix}--modal`,
{
'is-visible': open,
'is-visible': isOpen,
[`${prefix}--modal--danger`]: danger,
[`${prefix}--modal--slug`]: slug,
},
Expand Down
2 changes: 2 additions & 0 deletions packages/styles/scss/components/modal/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@
> button:not(:only-child)
) {
@include callout-gradient('default', 64px);

background-color: $layer;
}

.#{$prefix}--modal--slug .#{$prefix}--slug {
Expand Down

0 comments on commit b27a526

Please sign in to comment.