Bug 503012

Summary: SearchField placeholders are not at the right side RTL
Product: [Frameworks and Libraries] frameworks-kirigami Reporter: easy_lad <uneasy_latitude544>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate, notmart
Priority: NOR Keywords: rtl
Version First Reported In: 6.13.0   
Target Milestone: Not decided   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=504091
Latest Commit: Version Fixed/Implemented In: 6.15
Sentry Crash Report:
Attachments: Showing where the placeholder text should've been.

Description easy_lad 2025-04-19 12:14:02 UTC
Created attachment 180402 [details]
Showing where the placeholder text should've been.

SUMMARY

"Search…" placeholder in Arabic, is not at the right side RTL. See image attached.


STEPS TO REPRODUCE
1. Switch language to Arabic
2. Open System Settings
3. The search bar palceholder text is not at the right side RTL

OBSERVED RESULT

The search bar palceholder text is not at the right side RTL

EXPECTED RESULT

The search bar palceholder text is at the right side RTL.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Comment 1 easy_lad 2025-04-19 12:20:44 UTC
It looks like the issue is with all placeholders, they are not RTL when using RTL language OS setting.
Comment 2 Nate Graham 2025-04-23 07:40:46 UTC
The entire layout is wrong; that magnifying glass should be on the other side too.
Comment 3 easy_lad 2025-04-23 14:32:58 UTC
(In reply to Nate Graham from comment #2)
> The entire layout is wrong; that magnifying glass should be on the other
> side too.

Yeah, correct :)
Comment 4 Nate Graham 2025-05-08 21:25:12 UTC
Git commit d803ca3583838eb9e4a6854763be45be91925523 by Nate Graham.
Committed on 08/05/2025 at 21:25.
Pushed by ngraham into branch 'master'.

SearchField fix RTL search icon positioning

We're overriding the value of LayoutMirroring.enabled unnecessarily and
incorrectly, causing the icon to always appear on the left regardless of
RTL. Just let it cascade to this component normally.
FIXED-IN: 6.15

M  +0    -1    src/controls/SearchField.qml

https://invent.kde.org/frameworks/kirigami/-/commit/d803ca3583838eb9e4a6854763be45be91925523
Comment 5 Nate Graham 2025-05-08 21:25:20 UTC
Git commit d803ca3583838eb9e4a6854763be45be91925523 by Nate Graham.
Committed on 08/05/2025 at 21:25.
Pushed by ngraham into branch 'master'.

SearchField fix RTL search icon positioning

We're overriding the value of LayoutMirroring.enabled unnecessarily and
incorrectly, causing the icon to always appear on the left regardless of
RTL. Just let it cascade to this component normally.
FIXED-IN: 6.15

M  +0    -1    src/controls/SearchField.qml

https://invent.kde.org/frameworks/kirigami/-/commit/d803ca3583838eb9e4a6854763be45be91925523