[ShellBarSearch] Search icon renders on inline-end instead of inline-start in RTL mode

Aperta
#14,300 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

author action bug
Bug Description

In RTL mode, the search magnifying glass icon inside ShellBarSearch appears on the left (inline-end) side of the input field. In LTR mode the icon correctly sits on the left (inline-start). The icon should always be on the inline-start side regardless of direction.

Root cause: .ui5-search-field-content is display: flex; flex-direction: row with DOM order INPUT (index 0) → ICON (index 1). In RTL, flex-row reverses the visual order, placing the icon at inline-end.

Measured positions (RTL, 1512px viewport):

  • Input: left=259, right=624
  • Icon: left=228, right=256

The icon should be at ~596–624 (inline-start in RTL), not 228–256 (inline-end).

Affected Component

@ui5/webcomponents-fiori — ShellBarSearch (ui5-shellbar-search) Version: 2.27.0

Expected Behaviour

The search icon appears on the inline-start side of the input field in both LTR and RTL modes.

Isolated Example

No response

Steps to Reproduce
  1. Render a ui5-shellbar with the search field expanded
  2. Set document direction to RTL:
  3. Observe the search icon — it is on the left (inline-end) instead of the right (inline-start)
Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.27.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration
  • I’m not disclosing any internal or sensitive information.
Lingua principale
TypeScript
Stelle
1.8k
Fork
289
Merge medio
4g 5h
PR unite (30g)
33

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UI5/webcomponents

Tutte le issue di UI5/webcomponents

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.