From d4579d4b3a3ad1e8bfcc8b644176230f95f204e0 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 30 Oct 2024 12:07:11 +0300 Subject: [PATCH] Refactor #6680 - For Button --- packages/primevue/src/button/style/ButtonStyle.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/primevue/src/button/style/ButtonStyle.js b/packages/primevue/src/button/style/ButtonStyle.js index 014dfd615..66e266c44 100644 --- a/packages/primevue/src/button/style/ButtonStyle.js +++ b/packages/primevue/src/button/style/ButtonStyle.js @@ -31,14 +31,22 @@ const theme = ({ dt }) => ` order: 1; } +.p-button-icon-right:dir(rtl) { + order: -1; +} + +.p-button:not(.p-button-vertical) .p-button-icon:not(.p-button-icon-right):dir(rtl) { + order: 1; +} + .p-button-icon-bottom { order: 2; } .p-button-icon-only { width: ${dt('button.icon.only.width')}; - padding-left: 0; - padding-right: 0; + padding-inline-start: 0; + padding-inline-end: 0; gap: 0; }