From aa0b15bcb214075eb147bc4a92bda459af7485ae Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 28 Oct 2024 18:44:32 +0300 Subject: [PATCH] Fixed #6661 - Drawer - Design Tokens --- packages/primevue/src/drawer/style/DrawerStyle.js | 2 +- packages/themes/src/presets/aura/drawer/index.js | 3 +++ packages/themes/src/presets/lara/drawer/index.js | 3 +++ packages/themes/src/presets/material/drawer/index.js | 3 +++ packages/themes/src/presets/nora/drawer/index.js | 3 +++ 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/primevue/src/drawer/style/DrawerStyle.js b/packages/primevue/src/drawer/style/DrawerStyle.js index 2e16db616..499e5e890 100644 --- a/packages/primevue/src/drawer/style/DrawerStyle.js +++ b/packages/primevue/src/drawer/style/DrawerStyle.js @@ -29,7 +29,7 @@ const theme = ({ dt }) => ` } .p-drawer-footer { - padding: ${dt('drawer.header.padding')}; + padding: ${dt('drawer.footer.padding')}; } .p-drawer-title { diff --git a/packages/themes/src/presets/aura/drawer/index.js b/packages/themes/src/presets/aura/drawer/index.js index 65ac70d7a..60334e180 100644 --- a/packages/themes/src/presets/aura/drawer/index.js +++ b/packages/themes/src/presets/aura/drawer/index.js @@ -14,5 +14,8 @@ export default { }, content: { padding: '0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}' + }, + footer: { + padding: '{overlay.modal.padding}' } }; diff --git a/packages/themes/src/presets/lara/drawer/index.js b/packages/themes/src/presets/lara/drawer/index.js index 65ac70d7a..60334e180 100644 --- a/packages/themes/src/presets/lara/drawer/index.js +++ b/packages/themes/src/presets/lara/drawer/index.js @@ -14,5 +14,8 @@ export default { }, content: { padding: '0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}' + }, + footer: { + padding: '{overlay.modal.padding}' } }; diff --git a/packages/themes/src/presets/material/drawer/index.js b/packages/themes/src/presets/material/drawer/index.js index 65ac70d7a..60334e180 100644 --- a/packages/themes/src/presets/material/drawer/index.js +++ b/packages/themes/src/presets/material/drawer/index.js @@ -14,5 +14,8 @@ export default { }, content: { padding: '0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}' + }, + footer: { + padding: '{overlay.modal.padding}' } }; diff --git a/packages/themes/src/presets/nora/drawer/index.js b/packages/themes/src/presets/nora/drawer/index.js index 86bf56978..fc5c33325 100644 --- a/packages/themes/src/presets/nora/drawer/index.js +++ b/packages/themes/src/presets/nora/drawer/index.js @@ -14,5 +14,8 @@ export default { }, content: { padding: '0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}' + }, + footer: { + padding: '{overlay.modal.padding}' } };