From 3e81b842f8e51734147f5b38b7ae2c3d78d8b23c Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 24 Oct 2024 17:27:49 +0300 Subject: [PATCH] Refactor #6636 - For MultiSelect --- .../src/multiselect/style/MultiSelectStyle.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/primevue/src/multiselect/style/MultiSelectStyle.js b/packages/primevue/src/multiselect/style/MultiSelectStyle.js index a2e5dcc21..60cd05532 100644 --- a/packages/primevue/src/multiselect/style/MultiSelectStyle.js +++ b/packages/primevue/src/multiselect/style/MultiSelectStyle.js @@ -56,8 +56,8 @@ const theme = ({ dt }) => ` background: transparent; color: ${dt('multiselect.dropdown.color')}; width: ${dt('multiselect.dropdown.width')}; - border-top-right-radius: ${dt('multiselect.border.radius')}; - border-bottom-right-radius: ${dt('multiselect.border.radius')}; + border-start-end-radius: ${dt('multiselect.border.radius')}; + border-end-end-radius: ${dt('multiselect.border.radius')}; } .p-multiselect-label-container { @@ -68,7 +68,7 @@ const theme = ({ dt }) => ` .p-multiselect-label { display: flex; - align-items-center; + align-items: center; gap: calc(${dt('multiselect.padding.y')} / 2); white-space: nowrap; cursor: pointer; @@ -113,7 +113,7 @@ const theme = ({ dt }) => ` } .p-multiselect-header .p-checkbox { - margin-right: ${dt('multiselect.option.gap')}; + margin-inline-end: ${dt('multiselect.option.gap')}; } .p-multiselect-filter-container { @@ -135,7 +135,7 @@ const theme = ({ dt }) => ` padding: ${dt('multiselect.list.padding')}; display: flex; flex-direction: column; - gap: ${dt('multiselect.list.gap')} + gap: ${dt('multiselect.list.gap')}; } .p-multiselect-option { @@ -154,7 +154,7 @@ const theme = ({ dt }) => ` transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, box-shadow ${dt('multiselect.transition.duration')}, outline-color ${dt( 'multiselect.transition.duration' )}; - border-radius: ${dt('multiselect.option.border.radius')} + border-radius: ${dt('multiselect.option.border.radius')}; } .p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus { @@ -186,8 +186,8 @@ const theme = ({ dt }) => ` } .p-multiselect-label .p-chip { - padding-top: calc(${dt('multiselect.padding.y')} / 2); - padding-bottom: calc(${dt('multiselect.padding.y')} / 2); + padding-block-start: calc(${dt('multiselect.padding.y')} / 2); + padding-block-end: calc(${dt('multiselect.padding.y')} / 2); border-radius: ${dt('multiselect.chip.border.radius')}; }