Modal dialog makes its focus visible as it opens

Open Beginner friendly
#26,445 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start by reading modal_dialog_barrier_on_spawn in bevy_ui_widgets's modal.rs and trace how it sets InputFocusVisible in each branch. Check the related focus and modal tests, then verify that an autofocused text input does not show its focus ring without keyboard navigation while keyboard navigation still makes focus visible.

Written by the indexing model from the issue text.

Description

A-UI C-Bug D-Modest S-Needs-Design

Bevy version and features

0.20-dev

What went wrong

modal_dialog_barrier_on_spawn in bevy_ui_widgets' modal.rs sets InputFocusVisible in both branches, so an autofocused text input shows its ring with no keyboard navigation.

Dominant language
Rust
Stars
49.8k
Forks
5.1k
Avg merge
3d 4h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.