Skip to content

Keyboard-focused Button Highlight Rendering is Off #1851

@jbirnick

Description

@jbirnick

Description

One can use the TAB key to cycle through focusing different buttons. The rendering

Environment

  • GPUI: latest git
  • GPUI Component: latest git
  • Platform: Arch Linux

Steps to Reproduce

  1. Clone the gpui-component repo
  2. Run cargo run --release
  3. Go to the button section and press TAB to focus different buttons
  4. Observe that the gray box is rendered slightly off to the top left.

Screenshots

Image

Expected

The gray border that signals focus is centered around the button.

Actual

It's slightly off to the top left.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions