Skip to content

Fix/bc pay button accessibility#361

Draft
divyansh-v15-06 wants to merge 2 commits into
getAlby:masterfrom
divyansh-v15-06:fix/bc-pay-button-accessibility
Draft

Fix/bc pay button accessibility#361
divyansh-v15-06 wants to merge 2 commits into
getAlby:masterfrom
divyansh-v15-06:fix/bc-pay-button-accessibility

Conversation

@divyansh-v15-06
Copy link
Copy Markdown

This PR improves the accessibility and interaction handling of the bc-pay-button component.

What changed

Removed nested interactive elements by making bci-button the single interactive control

Simplified keyboard interaction by relying on native button behavior

Added clear, state-based aria-label values for screen readers

Preserved existing payment flow and state logic without behavior changes

Why

The previous structure wrapped a button-like component inside another interactive element, which can cause accessibility issues for keyboard and screen reader users. This update aligns the component with best practices by ensuring a single, semantically correct interactive element.

Impact

Improves accessibility and WCAG compliance

Keeps behavior unchanged for existing integrations

Makes the component consistent with other Bitcoin Connect buttons

@rolznz rolznz marked this pull request as draft February 5, 2026 15:33
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.

1 participant