Skip to content

Commit

Permalink
feat: fix backdrop transition (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulcanellee authored Dec 26, 2024
1 parent 32f3aac commit 666899d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/curvy-rice-decide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@alfalab/core-components-backdrop': patch
'@alfalab/core-components-drawer': patch
---

- Для drawer исправлена передача backdrop transition пропсов
- Для backdrop поднята специфичность transition класса
2 changes: 1 addition & 1 deletion packages/backdrop/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
transition: background-color 200ms ease-out;
}

.transparent {
.transparent.transparent {
background-color: var(--backdrop-hidden-background);
}
2 changes: 1 addition & 1 deletion packages/drawer/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type DrawerProps = Omit<BaseModalProps, 'container'> & {
export const DrawerContext = BaseModalContext;

const backdropProps = {
classNames: {
transitionClassNames: {
enter: styles.backdropEnter,
appear: styles.backdropEnter,
enterActive: styles.backdropEnterActive,
Expand Down

0 comments on commit 666899d

Please sign in to comment.