Skip to content

Commit 82d19b2

Browse files
anandamaryon1colinrotherham
authored andcommitted
fix focus state overlap
1 parent 8d55612 commit 82d19b2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/stylesheets/app/_code-highlight.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ p code {
5151
.app-code__container {
5252
padding: nhsuk-spacing(3);
5353
overflow-x: auto;
54-
border: $nhsuk-border-width-form-element solid transparent;
5554
line-height: 1.5;
55+
border: $nhsuk-focus-width solid transparent;
5656

5757
&:focus {
58-
@include nhsuk-focused-input;
58+
border: $nhsuk-focus-width solid $nhsuk-focus-text-colour;
59+
outline: $nhsuk-focus-width solid $nhsuk-focus-colour;
5960
}
6061
}

0 commit comments

Comments
 (0)