Skip to content

Update personal key UI#1659

Merged
monfresh merged 1 commit intomasterfrom
mb-update-personal-key-ui
Sep 18, 2017
Merged

Update personal key UI#1659
monfresh merged 1 commit intomasterfrom
mb-update-personal-key-ui

Conversation

@monfresh
Copy link
Contributor

@monfresh monfresh commented Sep 6, 2017

Why: For a better user experience.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By changing the link into a button, the button loses its border when you hover over it, and I wasn't sure how to fix that aside from commenting this out. Let me know if there's a better way to do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why didn't we need this for the other uses of button_to in the app? Unsure if we need it

@monfresh monfresh force-pushed the mb-update-personal-key-ui branch from 1adf8d7 to 718ccef Compare September 6, 2017 02:40
/ = link_to manage_personal_key_path do
/ span.hide
/ = t('account.items.personal_key')
/ = t('account.links.regenerate_personal_key')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original link had a hidden span, presumably for accessibility purposes. I wasn't sure if we needed it now that we're using button_to. If we do need it, where would it go?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like button_to can take a block and we can put the span.hide inside of that: https://github.com/18F/identity-idp/blob/master/app/views/accounts/actions/_disable_totp.html.slim#L2

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM after we fix the span.hide bit to match existing

/ = link_to manage_personal_key_path do
/ span.hide
/ = t('account.items.personal_key')
/ = t('account.links.regenerate_personal_key')
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like button_to can take a block and we can put the span.hide inside of that: https://github.com/18F/identity-idp/blob/master/app/views/accounts/actions/_disable_totp.html.slim#L2

Copy link
Contributor

Choose a reason for hiding this comment

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

Why didn't we need this for the other uses of button_to in the app? Unsure if we need it

@monfresh monfresh force-pushed the mb-update-personal-key-ui branch 3 times, most recently from 1cef1d4 to 341d131 Compare September 18, 2017 16:00
**Why**: For a better user experience.
@monfresh
Copy link
Contributor Author

I updated to add the span.hide. This should be good to go now once Circle CI is green.

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM thanks!

@monfresh monfresh merged commit be4f52a into master Sep 18, 2017
@monfresh monfresh deleted the mb-update-personal-key-ui branch September 18, 2017 17:17
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