From 8b328466fe8c74db722a4d158c81c78a6f7a65fa Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 25 Mar 2024 21:57:56 +0300 Subject: [PATCH] Fixed icon field icon color --- .../lib/themes/primeone/base/iconfield/index.js | 3 ++- .../primeone/presets/aura/iconfield/index.js | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/components/lib/themes/primeone/base/iconfield/index.js b/components/lib/themes/primeone/base/iconfield/index.js index 66717019e..a7e7c5984 100644 --- a/components/lib/themes/primeone/base/iconfield/index.js +++ b/components/lib/themes/primeone/base/iconfield/index.js @@ -4,10 +4,11 @@ export default { position: relative; } -.p-icon-field .p-input-icon { +.p-input-icon { position: absolute; top: 50%; margin-top: -.5rem; + color: ${dt('iconfield.color')}; } .p-icon-field-left .p-input-icon { diff --git a/components/lib/themes/primeone/presets/aura/iconfield/index.js b/components/lib/themes/primeone/presets/aura/iconfield/index.js index ff8b4c563..c6583bd5f 100644 --- a/components/lib/themes/primeone/presets/aura/iconfield/index.js +++ b/components/lib/themes/primeone/presets/aura/iconfield/index.js @@ -1 +1,14 @@ -export default {}; +export default { + colorScheme: { + light: { + root: { + color: '{surface.400}' + } + }, + dark: { + root: { + color: '{surface.400}' + } + } + } +};