Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Rework "Effective date" UI #506

Merged
merged 7 commits into from
Aug 30, 2017
Merged

Rework "Effective date" UI #506

merged 7 commits into from
Aug 30, 2017

Conversation

cmc333333
Copy link
Member

Per 18F/atf-eregs#510, the display of the effective date in the upper-right has confused users. In particular, they weren't confident which version they were viewing when seeing previous versions. This resolves some of that. @micahtaylor's already approved the design.

Current law

current-header

Past/Future law

non-current-header

CM Lubinski added 3 commits August 29, 2017 18:26
We had been throwing around pseudo-constants "past" "current" and "future".
This converts them into an enum and renames "current" to "present" to
disambiguate.
Copy link
Contributor

@tadhg-ohiggins tadhg-ohiggins left a comment

Choose a reason for hiding this comment

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

def is_alternate_timeline(self):
    return self != self

CM Lubinski added 2 commits August 29, 2017 19:10
We had been passing only the effective date of a version, but the new design
calls for both a start end end date.
The "Effective" heading hasn't been obvious enough to users, particularly when
reviewing previous versions of the regulation. These template and style tweaks
change that by adding the end date where applicable and highlighting the
version when it's not the current law.
@cmc333333
Copy link
Member Author

Thanks @tadhg-ohiggins -- I'm going to fix the lint error, bump the version, then merge.

cmc333333 pushed a commit that referenced this pull request Aug 29, 2017
New Features
* #506 "Effective date" UI now includes more information and warns when not
  viewing the current version.

Bug Fixes & Misc
* #497 Update frontend dependencies.
* #501 Set Sauce Labs key in Travis UI.
* #502 Improve accessibility by including the text of a link in its
  aria-label.
* #503 Fix some HTML escaping issues.
* #504 Fix scrolling issue in regulation timeline.
* #505 Darken Subpart labels to provide more contrast. Remove ids from SVGs
  for automated readers.
@@ -57,6 +57,7 @@ $panel_text_color: $black; // Text color for table of contents
$text_highlight_color: $green_lightest; // Text highlight used for diffs
$success_color: $green_lightest; // Used as background for success messages
$notice_color: $blue_lightest; // Used as background for neutral notice messages
$alert_color: $orange_lightest; // Used as background for caution messages

Choose a reason for hiding this comment

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

Would like this to be #fff0dd similar to the CFPB lightest orange, please.

Choose a reason for hiding this comment

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

I think it's fine to change it to the originating $orange_lightest; declaration.

Copy link
Member Author

Choose a reason for hiding this comment

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

What do you think about using the "gold" color scheme from the USDWS (eRegs' base should be following those color schemes, but it may have moved out from under us)? We'd be at #fff1d2 then.

Copy link
Member Author

Choose a reason for hiding this comment

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

Closing the loop, @micahtaylor said this was a reasonable solution.

@@ -107,7 +107,7 @@
position: fixed;
top: $mainhead_height;
min-width: 100%;
background: $panel_background_color;
background-color: $panel_background_color;
color: $black;

Choose a reason for hiding this comment

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

The font color should be $atf_sub_head_background, what was the background color. I think that is declared here but not sure.

Copy link
Member Author

@cmc333333 cmc333333 Aug 30, 2017

Choose a reason for hiding this comment

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

That'll be an ATF-specific override. The default sub-head is black(ish) on gray, as in the screenshots.

CM Lubinski added 2 commits August 30, 2017 10:07
USWDS doesn't have an orange color, so we'll want to remove it eventually. In
the short term, though, we'll deprecate its usage. We can remove with the next
major release.
New Features
* #506 "Effective date" UI now includes more information and warns when not
  viewing the current version.

Bug Fixes & Misc
* #497 Update frontend dependencies.
* #501 Set Sauce Labs key in Travis UI.
* #502 Improve accessibility by including the text of a link in its
  aria-label.
* #503 Fix some HTML escaping issues.
* #504 Fix scrolling issue in regulation timeline.
* #505 Darken Subpart labels to provide more contrast. Remove ids from SVGs
  for automated readers.
* #506 Replaced "orange" values with their "gold" equivalents
@cmc333333 cmc333333 merged commit c2db631 into master Aug 30, 2017
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.

3 participants