-
Notifications
You must be signed in to change notification settings - Fork 46
Conversation
We had been throwing around pseudo-constants "past" "current" and "future". This converts them into an enum and renames "current" to "present" to disambiguate.
a08219a
to
4bfe8f2
Compare
There was a problem hiding this 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
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.
4bfe8f2
to
c85e528
Compare
Thanks @tadhg-ohiggins -- I'm going to fix the lint error, bump the version, then merge. |
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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
2a05c25
to
7c7f8ef
Compare
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
Past/Future law