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

未关闭
#14,300 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

这个 Issue 还没有评估数据。

描述

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.
主要语言
TypeScript
星标
1.8k
派生
289
平均合并
4 天 5 小时
30 天内合并 PR
33

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

UI5/webcomponents 的其他 Issue

查看 UI5/webcomponents 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。