Skip to content

DPC-5177 Button link fix#2924

Merged
jhutchison-nava merged 8 commits intomainfrom
jh/DPC-5177-button-link-fix
Mar 6, 2026
Merged

DPC-5177 Button link fix#2924
jhutchison-nava merged 8 commits intomainfrom
jh/DPC-5177-button-link-fix

Conversation

@jhutchison-nava
Copy link
Contributor

@jhutchison-nava jhutchison-nava commented Feb 24, 2026

🎫 Ticket

https://jira.cms.gov/browse/DPC-5177

🛠 Changes

Updates button link/handling so that buttons that behaved as links are now just links

<form method="GET" action="/some-path">
   <button>Click me</button>
</form>

becomes

<a href="/some-path">Click me</a>

Also updates button_to component handling to set method back to the default of POST to avoid incorrect usage going forward.

ℹ️ Context

We were incorrectly using submit buttons which behave differently than expected than links for screen reader users and those who use assistive technology. This makes links semantically consistent.

🧪 Validation

Verified during development using Lookbook

A11y check

  • This change isn't caught by automated semantic HTML check, so we remain at 11 issues

@jhutchison-nava jhutchison-nava requested a review from a team as a code owner February 24, 2026 17:56
@jhutchison-nava jhutchison-nava force-pushed the jh/DPC-5177-button-link-fix branch 3 times, most recently from 258b879 to 6a9d10f Compare February 26, 2026 15:58
@jhutchison-nava jhutchison-nava force-pushed the jh/DPC-5177-button-link-fix branch from 6a9d10f to c8b48a3 Compare March 4, 2026 17:25
MEspositoE14s
MEspositoE14s previously approved these changes Mar 5, 2026
Copy link
Contributor

@MEspositoE14s MEspositoE14s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on my local machine 👍

Copy link
Contributor

@jdettmannnava jdettmannnava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably out of scope, but added some fixes

Copy link
Contributor

@ashley-weaver ashley-weaver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhutchison-nava jhutchison-nava merged commit 9f02726 into main Mar 6, 2026
11 checks passed
@jhutchison-nava jhutchison-nava deleted the jh/DPC-5177-button-link-fix branch March 6, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants