Skip to content

fix: Google Authenticator setup UI improvements#4092

Open
Luxu2-Okta wants to merge 2 commits into
masterfrom
OKTA-1185578-google-auth-ui
Open

fix: Google Authenticator setup UI improvements#4092
Luxu2-Okta wants to merge 2 commits into
masterfrom
OKTA-1185578-google-auth-ui

Conversation

@Luxu2-Okta

@Luxu2-Okta Luxu2-Okta commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Resolves: OKTA-1185578

Description:

Fixes an accessibility issue in the Google Authenticator enrollment flow (OKTA-1185578), figma: https://www.figma.com/design/G2kZ9WtlYLLd9q6ZfGJeXT/1--improvements?node-id=11249-257&t=7TU0T04YXbGal2RG-0

Problem: The shared secret was rendered inside a readonly , which:

  • Visually appeared disabled/greyed out
  • A double-click selection would spill into the "Next" button instead of selecting just the secret value

Solution: Replace the readonly input with a plain containing the unmodified secret string, with the following properties:

  • tabindex="0" keeps it in the keyboard tab order
  • aria-label spells out each character with spaces (e.g. "A B C 1 2 3") so screen readers announce the code one character at a time on focus
  • CSS letter-spacing: 0.3em provides visual separation between characters without inserting literal spaces, so a double-click still selects the entire value cleanly
  • text-indent: 0.3em compensates for the trailing letter-spacing to keep the text visually centered

Changes affect both the v2 (OIE Backbone) and v3 (Gen3 React) implementations. Tests and snapshots updated accordingly.

PR Checklist

Issue:

Reviewers:

Screenshot/Video:

Gen Before fix After fix
Gen2 Screenshot 2026-07-17 at 5 23 29 PM Screenshot 2026-07-22 at 12 04 47 PM
Gen3 Screenshot 2026-07-17 at 5 26 16 PM Screenshot 2026-07-22 at 12 01 36 PM

Downstream Monolith Build:

https://bacon-go.aue1e.saasure.net/commits?artifact=monolith&page=1&pageSize=6&sha=91e98dfcb583167e8c9510365732139f8ff4afc4&tab=main

IE11 verification

Screenshot 2026-07-22 at 12 36 12 PM Screenshot 2026-07-22 at 12 32 34 PM

@Luxu2-Okta Luxu2-Okta changed the title fix google authenticator a11y issue fix: Google Authenticator setup UI improvements Jul 21, 2026
@Luxu2-Okta
Luxu2-Okta force-pushed the OKTA-1185578-google-auth-ui branch from e7daf77 to 91dfb19 Compare July 22, 2026 16:19
@Luxu2-Okta
Luxu2-Okta force-pushed the OKTA-1185578-google-auth-ui branch from 91dfb19 to 97b928d Compare July 22, 2026 16:24
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