Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Align logout button #1420

Merged
merged 1 commit into from Jul 13, 2021
Merged

Align logout button #1420

merged 1 commit into from Jul 13, 2021

Conversation

TaiWilkin
Copy link
Contributor

@TaiWilkin TaiWilkin commented Jul 12, 2021

Overview

The button for the navigation dropdown for logged-in users was out of
line with the links, but is now aligned. Logout, unlike the other items
in the navigation, is a button instead of an anchor, because it doesn't
navigate the user but rather performs an action in response to a click.
This requires it to have different styles, which need to be set using
higher specifity CSS classes in order to override the '!important' tags
on other CSS classes for nav dropdowns.

Connects #1411

Demo

Screen Shot 2021-07-12 at 12 26 44 PM

Testing Instructions

  • Run ./scripts/server, login as any user, and click the user name in the upper right-hand corner to view the log out button. Confirm it is aligned properly at various screen sizes.

Checklist

  • fixup! commits have been squashed
  • CI passes after rebase
  • CHANGELOG.md updated with summary of features or fixes, following Keep a Changelog guidelines

Copy link
Contributor

@jwalgran jwalgran left a comment

Choose a reason for hiding this comment

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

Looks good 👍
Screen Shot 2021-07-12 at 1 39 05 PM

@jwalgran jwalgran assigned TaiWilkin and unassigned jwalgran Jul 12, 2021
The button for the navigation dropdown for logged-in users was out of
line with the links, but is now aligned. Logout, unlike the other items
in the navigation, is a button instead of an anchor, because it doesn't
navigate the user but rather performs an action in response to a click.
This requires it to have different styles, which need to be set using
higher specifity CSS classes in order to override the '!important' tags
on other CSS classes for nav dropdowns.
@TaiWilkin
Copy link
Contributor Author

Thanks for reviewing!

@TaiWilkin TaiWilkin merged commit 95c8166 into develop Jul 13, 2021
@TaiWilkin TaiWilkin deleted the tw/style-logout branch July 13, 2021 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants