# ui: Wire up tab indices within buttons \(\#35368\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/19c1504c8ffa460693ee9a0d53292f860255b8d8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 19c1504c8ffa460693ee9a0d53292f860255b8d8

Requested commit: 19c1504c8ffa460693ee9a0d53292f860255b8d8

Commit: 19c1504c8ffa460693ee9a0d53292f860255b8d8

Tree: fb9d4600d8afb4849decaa1255efe795aaa15bff

Author: Finn Evers

Committer: GitHub

## Message

```
ui: Wire up tab indices within buttons (#35368)

This change adds the current tab index functionality to buttons and
implements a proof of concept for the new welcome page.

Primarily blocked on https://github.com/zed-industries/zed/pull/34804,
secondarily on https://github.com/zed-industries/zed/pull/35075 so we
can ensure navigation always works as intended.

Another thing to consider here is whether we want to assign the tab
order more implicitly / "automatically" based on the current layout
ordering. This would generally enable us to add a default order to
focusable elements if we want this. See [the
specification](https://html.spec.whatwg.org/multipage/interaction.html#flattened-tabindex-ordered-focus-navigation-scope)
on some more context on how the web usually handles this for focusable
elements.

Release Notes:

- N/A
```

## Parents

- [5940ed979fc593190e4b8fbb9b48660d61527874](https://git.cafe/gitcafe/zed/commit/5940ed979fc593190e4b8fbb9b48660d61527874?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/19c1504c8ffa460693ee9a0d53292f860255b8d8?format=markdown)
