Skip to content
Merged
Changes from all commits
Commits
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: 9 additions & 4 deletions app/assets/stylesheets/components/_file-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
border-color: color('primary-dark');
}
}

.usa-file-input__input:focus {
outline-offset: 3px;
}
}

.usa-form-group--error .usa-file-input .usa-file-input__target {
Expand Down Expand Up @@ -75,3 +71,12 @@
width: 100%;
}
}

.usa-file-input__input:not([disabled]):focus {
outline: 3px solid $blue;
outline-offset: 6px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this offset account for the border of the input itself? For a field with a value, it seems to be much bigger an offset:

image

I can see how we'd need a big offset for the chunkier 3px border, but should it be reduced when it's the thinner border when a value is assigned? Like 4px or 5px?

}

.usa-file-input--has-value .usa-file-input__input:not([disabled]):focus {
outline-offset: 4px;
}