Skip to content

Commit

Permalink
Merge pull request #5710 from cfpb/ans_fix_search_focus
Browse files Browse the repository at this point in the history
Global Search: Fix cropped search focus rectangle
  • Loading branch information
anselmbradford committed May 6, 2020
2 parents b531038 + a8fa03d commit 9f8a0f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cfgov/unprocessed/css/molecules/global-search.less
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@
&_content {
right: @margin_half__em;
width: auto;
// Add margin so that the focus rectangle isn't cropped by
// the hidden overflow of the search container element.
margin-left: 3px;
}
}
} );
Expand Down
4 changes: 3 additions & 1 deletion cfgov/unprocessed/css/organisms/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@
}

> .m-global-search {
min-width: 340px;
// Width should visually be 340px, plus 3px to accommodate
// the focus state.
min-width: 343px;
}
}
} );
Expand Down

0 comments on commit 9f8a0f0

Please sign in to comment.