Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC 324 -- Text and email buttons not identified consistently #18

Open
damiansian opened this issue Jan 4, 2025 · 0 comments
Open

SC 324 -- Text and email buttons not identified consistently #18

damiansian opened this issue Jan 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@damiansian
Copy link

URLs

https://demo.fileyourstatetaxes.org/en/questions/contact-preference
https://demo.fileyourstatetaxes.org/en/login-options

Issue

The "text code" and "email code" action is identified as a link on one page, but as a button on another page. The WCAG specifies that:

Components that have the same functionality within a set of Web pages are identified consistently.

Screen shots

Image

Image

Identification on one page as a link

<a 
    class="button button--wide" href="/en/login/new?contact_method=sms_phone_number">
    Sign in with phone number</a>

Identification on another page as a button

<button 
    name="state_file_contact_preference_form[contact_preference]" 
    type="submit" id="state_file_contact_preference_form_submit" 
    value="text" 
    class="button" 
    aria-describedby="main-question">
            Text me a code
</button>

WCAG Success Criterion

SC 3.2.4: Consistent Identification (Level AA)

Impacted users

People who learn functionality on one page on a site can find the desired functions on other pages if they are present. When non-text content is used in a consistent way to identify components with the same functionality, people who rely on accessible names and the roles of a control, can interact with the interface in a more predictable manner. They can also search for the component if it has a consistent label/role on different pages.

Suggested fix

Consider using button semantics for all class="yes-no-buttons" components. Generally, buttons do things and links go places. It may be useful to make the delineation for cognitive load and apply it consistently throughout the experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant