Skip to content

LG11696: Associate TOTP setup fields with visual label#9704

Closed
jc-gsa wants to merge 4 commits intomainfrom
LG-11696-accessibility-TOTP-setup-fields
Closed

LG11696: Associate TOTP setup fields with visual label#9704
jc-gsa wants to merge 4 commits intomainfrom
LG-11696-accessibility-TOTP-setup-fields

Conversation

@jc-gsa
Copy link
Contributor

@jc-gsa jc-gsa commented Dec 5, 2023

🎫 Ticket

LG11696

(WIP)

changelog: User-Facing Improvements, Authentication, Update accessibility related to TOTP fields
@jc-gsa jc-gsa force-pushed the LG-11696-accessibility-TOTP-setup-fields branch from f2bcac8 to e425c44 Compare December 5, 2023 02:49
Comment on lines +23 to +25
attr_reader :heading_level, :heading, :id

def initialize(heading_level:, heading:)
def initialize(heading_level:, heading:, id: nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the component root element is the list item and the other constructor attributes call out "heading" specifically, I'd expect a similar qualifier like heading_id.

Alternatively, we could adopt a pattern similar to tag_options to apply arbitrary attributes to the heading element, similar to what we do in some other components (example).

  <%= content_tag(
        heading_level,
        heading,
        **heading_options,
        class: [*heading_options[:class], 'usa-process-list__heading'],
      ) %>

Copy link
Contributor Author

@jc-gsa jc-gsa Dec 6, 2023

Choose a reason for hiding this comment

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

Added heading_id. New pull request is found here #9716 (couldn't revive this one).

@jc-gsa jc-gsa force-pushed the LG-11696-accessibility-TOTP-setup-fields branch from ad5071d to ffb9b6c Compare December 5, 2023 21:26
@jc-gsa jc-gsa force-pushed the LG-11696-accessibility-TOTP-setup-fields branch from ffb9b6c to 404bc06 Compare December 5, 2023 21:31
@jc-gsa jc-gsa closed this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants