Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bd1e520
Fix YARD syntax (#6157)
zachmargolis Apr 5, 2022
24657bc
Log External SAML Auth Requests (#6155)
Apr 5, 2022
14d6b9d
Fix downloading personal keys outside of IDV (LG-5882) (#6161)
zachmargolis Apr 5, 2022
f5c7db3
Replace custom color variables with design system tokens (#6086)
aduth Apr 6, 2022
492369d
Reimplement password toggle as reusable component (#6081)
aduth Apr 6, 2022
b2615d2
Remove idv/personal_key#download action (#6162)
zachmargolis Apr 6, 2022
ebc2636
Fix SAML Auth 500 at IAL2 (#6166)
Apr 6, 2022
4b4a48f
Remove unused full screen styles (#6165)
aduth Apr 6, 2022
fff95a3
Remove .about.yml (#6169)
zachmargolis Apr 6, 2022
6a18be9
Document additional analytics events (LG-5926) (#6171)
zachmargolis Apr 7, 2022
ad9e2cd
LG-5947 Document Analytics Events 4 (#6159)
theabrad Apr 7, 2022
056e97b
LG-5697: Remove accessible-forms pack (#6175)
aduth Apr 7, 2022
4429c8f
Extract common React hooks to package (#6174)
aduth Apr 7, 2022
3e354f4
Add New Total IAL2 Costs Report (LG-5816) (#6170)
zachmargolis Apr 7, 2022
60f2da4
Convert FormSteps component to native TypeScript (#6172)
aduth Apr 7, 2022
dfb73de
Move button to components package (#6173)
aduth Apr 8, 2022
f2408d9
Refactor FormSteps message handling to work with generic error (#6176)
aduth Apr 8, 2022
23c067c
Lg 6047 cc scan (#6178)
SammySteiner Apr 8, 2022
88b992c
Stop updating sp return logs for backwards compatibility (#6150)
Apr 11, 2022
855f1f8
Bump nokogiri from 1.13.3 to 1.13.4 (#6184)
dependabot[bot] Apr 12, 2022
249e8bb
Revert tab placement change for password toggle checkbox (#6185)
aduth Apr 12, 2022
c3702f5
Merge remote-tracking branch 'origin/stages/prod' into stages/rc-2022…
zachmargolis Apr 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .about.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ group :development, :test do
gem 'erb_lint', '~> 0.1.0', require: false
gem 'i18n-tasks', '>= 0.9.31'
gem 'knapsack'
gem 'nokogiri', '~> 1.13.2'
gem 'nokogiri', '~> 1.13.4'
gem 'parallel_tests'
gem 'pg_query', require: false
gem 'pry-byebug'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ GEM
net-ssh (6.1.0)
newrelic_rpm (8.5.0)
nio4r (2.5.8)
nokogiri (1.13.3)
nokogiri (1.13.4)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
notiffany (0.1.3)
Expand Down Expand Up @@ -732,7 +732,7 @@ DEPENDENCIES
multiset
net-sftp
newrelic_rpm (~> 8.0)
nokogiri (~> 1.13.2)
nokogiri (~> 1.13.4)
octokit
parallel_tests
pg
Expand Down
1 change: 0 additions & 1 deletion app/assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import 'variables/colors';
@import 'variables/app';
@import 'required';
@import 'design-system-waiting-room';
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/components/_card.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.card {
background-color: $white;
background-color: color('white');
max-width: $container-skinny-width;

&-wide {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/components/_file-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

.usa-file-input__input:not([disabled]):focus {
outline: 3px solid $blue;
outline: 3px solid color('primary');
outline-offset: 6px;
}

Expand Down
6 changes: 3 additions & 3 deletions app/assets/stylesheets/components/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ textarea {
border-width: $border-width;
border-color: $border-color;
border-radius: $border-radius;
color: $gray;
color: color('ink');
font-weight: $bold-font-weight;

&[type='number'],
Expand All @@ -36,8 +36,8 @@ textarea {
}

&:focus {
border-color: $field-focus-color;
box-shadow: 0 0 0 2px rgba($field-focus-color, 0.5);
border-color: color('primary');
box-shadow: 0 0 0 2px rgba(color('primary'), 0.5);
outline: none;
}

Expand Down
58 changes: 0 additions & 58 deletions app/assets/stylesheets/components/_full-screen.scss

This file was deleted.

6 changes: 3 additions & 3 deletions app/assets/stylesheets/components/_i18n-dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}

.i18n-mobile-dropdown {
background-color: $blue-light;
background-color: color('primary-lighter');
bottom: 100%;
left: 0;
position: absolute;
Expand All @@ -27,7 +27,7 @@
position: relative;

&.focused {
background-color: $blue;
background-color: color('primary');
border-radius: 0;
margin-bottom: 0;
margin-top: 0;
Expand All @@ -46,6 +46,6 @@
}

.language-mobile-button {
background-color: $blue-light;
background-color: color('primary-lighter');
border: 0;
}
31 changes: 0 additions & 31 deletions app/assets/stylesheets/components/_list.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
@mixin color-list($color: $yellow) {
list-style: none;
padding: 0;

li {
padding-left: 1rem;
text-indent: -1rem;

&::before {
color: $color;
content: '•';
font-size: 2rem;
line-height: 1.5rem;
padding-right: 0.5rem;
vertical-align: -3px;
}
}
}

.success-bullets {
.success-bullet {
padding: 1rem 1rem 1rem 0;
Expand All @@ -35,15 +16,3 @@
}
}
}

.red-dots {
@include color-list($red);
}

.teal-dots {
@include color-list($teal);
}

.yellow-dots {
@include color-list($yellow);
}
4 changes: 2 additions & 2 deletions app/assets/stylesheets/components/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

hr {
border-color: $teal;
border-color: color('info');
}
}

Expand All @@ -84,7 +84,7 @@
}

hr {
border-color: $yellow;
border-color: color('warning');
}
}

Expand Down
24 changes: 19 additions & 5 deletions app/assets/stylesheets/components/_password-toggle.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
.password-toggle__toggle {
@include u-pin-right;
top: -24px;
lg-password-toggle {
display: block;
position: relative;

.usa-checkbox__label {
@include u-margin-y(0);
&.password-toggle--toggle-top .password-toggle__toggle-label {
@include u-pin-right;
top: -24px;
}

&.password-toggle--toggle-bottom .validated-field__input-wrapper {
margin-bottom: units(2);
}
}

.password-toggle__toggle-wrapper {
display: flex;
justify-content: end;
}

.password-toggle__toggle-label.usa-checkbox__label {
@include u-margin-y(0);
}
1 change: 0 additions & 1 deletion app/assets/stylesheets/components/all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
@import 'personal-key';
@import 'spinner-button';
@import 'spinner-dots';
@import 'full-screen';
@import 'step-indicator';
@import 'troubleshooting-options';
@import 'i18n-dropdown';
1 change: 0 additions & 1 deletion app/assets/stylesheets/email.css.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import 'variables/colors';
@import 'variables/email';
@import 'foundation-emails/scss/foundation-emails';

Expand Down
2 changes: 0 additions & 2 deletions app/assets/stylesheets/variables/_app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ $border-radius-xl: 16px !default;
$border-radius-xxl: 24px !default;
$border-color: #cedced !default;

$field-focus-color: $blue !default;

$container-skinny-width: 620px !default;
$container-xskinny-width: 416px !default;
$container-xxskinny-width: 296px !default;
11 changes: 0 additions & 11 deletions app/assets/stylesheets/variables/_colors.scss

This file was deleted.

10 changes: 8 additions & 2 deletions app/assets/stylesheets/variables/_email.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@
// 1. Global
// ---------

$primary-color: $blue;
$secondary-color: $navy;
$primary-color: #0071bb;
$secondary-color: #112e51;
$success-color: #3adb76;
$warning-color: #ffae00;
$alert-color: #ec5840;
$light-gray: #f3f3f3;
$black: #111111;
$white: #ffffff;
$gray: #5b616a;
$medium-gray: #cacaca;
$dark-gray: #212121;
$blue-light: #ebf3fa;
$red: #e21c3d;
$red-lightest: #fff7f8;
$pre-color: #ff6908;
$global-width: 580px;
$global-width-small: 95%;
Expand Down
27 changes: 27 additions & 0 deletions app/components/password_toggle_component.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<%= content_tag(:'lg-password-toggle', class: css_class) do %>
<%= render ValidatedFieldComponent.new(
form: form,
name: :password,
type: :password,
label: label,
**field_options,
input_html: field_options[:input_html].to_h.merge(
id: input_id,
class: ['password-toggle__input', *field_options.dig(:input_html, :class)],
),
) %>
<div class="password-toggle__toggle-wrapper js">
<input
id="<%= toggle_id %>"
type="checkbox"
class="usa-checkbox__input usa-checkbox__input--bordered password-toggle__toggle"
aria-controls="<%= input_id %>"
>
<label
for="<%= toggle_id %>"
class="usa-checkbox__label password-toggle__toggle-label"
>
<%= toggle_label %>
</label>
</div>
<% end %>
32 changes: 32 additions & 0 deletions app/components/password_toggle_component.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class PasswordToggleComponent < BaseComponent
attr_reader :form, :label, :toggle_label, :toggle_position, :field_options

def initialize(
form:,
label: t('components.password_toggle.label'),
toggle_label: t('components.password_toggle.toggle_label'),
toggle_position: :top,
**field_options
)
@form = form
@label = label
@toggle_label = toggle_label
@toggle_position = toggle_position
@field_options = field_options
end

def css_class
classes = []
classes << 'password-toggle--toggle-top' if toggle_position == :top
classes << 'password-toggle--toggle-bottom' if toggle_position == :bottom
classes
end

def toggle_id
"password-toggle-#{unique_id}"
end

def input_id
"password-toggle-input-#{unique_id}"
end
end
3 changes: 3 additions & 0 deletions app/components/password_toggle_component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { PasswordToggleElement } from '@18f/identity-password-toggle-element';

customElements.define('lg-password-toggle', PasswordToggleElement);
Loading