adobe/react-spectrum

useToolbar: If a button is partially visible, it doesn't scroll into view

開放

#5,885 建立於 2024年2月15日

 (1 則留言) (0 個反應) (0 位負責人)TypeScript (1,500 個分叉)auto 404
bughelp wanted

倉庫指標

星標
 (15,634 顆星)
PR 合併指標
 (平均合併 8天 2小時) (30 天內合併 80 個 PR)

描述

Provide a general summary of the issue here

If a button is partially visible and it's the last button in toolbar, it doesn't scroll into view when focused using keyboard.

🤔 Expected Behavior?

Any trigger item should come fully into view when focused

😯 Current Behavior

Focused button doesn't come fully into view

🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/vigorous-glade-zctnr5?file=%2Fsrc%2FApp.js%3A19%2C9

The last button never comes in view fully when focus is moved using keyboard.

Version

3.30.0

What browsers are you seeing the problem on?

Chrome

What operating system are you using?

MacOS

貢獻者指南