[openstreetmap/openstreetmap-website] Fix login tab order for "Lost your password?" link (PR #6947)

Arpan Mukherjee notifications at github.com
Sun Mar 29 17:34:25 UTC 2026


Closes #6925

### Summary
Moves the "Lost your password?" link below the login button to fix incorrect tab order and improve accessibility.

### Problem
The link was previously placed before the password input in the DOM, causing keyboard navigation to focus it before the password field.

### Solution
Repositioned the link below the login button using Bootstrap utilities, ensuring proper tab flow without introducing custom CSS.

### Result
Updated tab order:
username → password → remember → login → lost password

### Screenshots
**Before**
<img width="708" height="291" alt="image" src="https://github.com/user-attachments/assets/0ffa89ab-2758-4242-ae5a-f5704ecdcbbd" />

**After**
<img width="908" height="515" alt="image" src="https://github.com/user-attachments/assets/9135c120-bd88-4606-9be7-e6e74126055a" />

Closes #6925
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6947?email_source=notifications&email_token=AAK2OLNFRHAZYZFRT4SHKCT4TFNCDA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINRSHA4TMMBTGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3POBSW4X3DNRUWG2Y

-- Commit Summary --

  * Rename heatmap to contribution calendar (UI + i18n)
  * Fix login tab order by moving 'Lost your password?' link

-- File Changes --

    M app/assets/javascripts/heatmap.js (6)
    M app/views/profiles/heatmaps/show.html.erb (2)
    M app/views/profiles/profile_sections/_navigation.html.erb (2)
    M app/views/sessions/new.html.erb (7)
    M app/views/users/show.html.erb (2)
    M config/locales/en.yml (18)
    M test/controllers/profiles/heatmaps_controller_test.rb (4)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6947.patch?email_source=notifications&email_token=AAK2OLOBAYRBXQ6X3BXUZNL4TFNCDA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINRSHA4TMMBTGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZYHEX3QMF2GG2C7MNWGSY3Lhttps://github.com/openstreetmap/openstreetmap-website/pull/6947.diff?email_source=notifications&email_token=AAK2OLK3DKLLYLJOML5642T4TFNCDA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTINRSHA4TMMBTGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3ENFTGMX3DNRUWG2Y
-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6947
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6947 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260329/b37b2ef3/attachment-0001.htm>


More information about the rails-dev mailing list