Skip to content

Commit 4f80d90

Browse files
Fix: [AEA-5338] - roles with access cards (#1508)
## Summary fixed styling layout for focussed cards - Routine Change
1 parent 9ee93c0 commit 4f80d90

File tree

1 file changed

+20
-27
lines changed

1 file changed

+20
-27
lines changed

packages/cpt-ui/src/styles/card.scss

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -34,35 +34,28 @@
3434
}
3535

3636
&:focus {
37-
outline: 3px solid #ffeb3b;
38-
outline-offset: 0;
39-
background-color: #ffeb3b;
40-
position: relative;
41-
42-
&::after {
43-
content: "";
44-
position: absolute;
45-
bottom: -4px;
46-
47-
height: 4px;
48-
background-color: #212b32;
49-
}
50-
51-
.eps-card__org-name .nhsuk-heading-s {
52-
text-decoration: underline !important;
53-
text-decoration-color: #212b32 !important;
54-
text-decoration-thickness: 2px !important;
55-
}
56-
37+
outline: none;
38+
background-color: transparent;
39+
// black border on bottom, plus increased yellow on top to cover the border when text doesnt overhang
5740
.eps-card__org-name {
58-
text-decoration: underline !important;
59-
text-decoration-color: #212b32 !important;
60-
text-decoration-thickness: 2px !important;
61-
}
62-
63-
.nhsuk-heading-s {
41+
outline: 3px solid transparent;
42+
background-color: #ffeb3b;
43+
box-shadow: 0 -4px #ffeb3b, 0 4px #212b32;
44+
text-decoration: none !important;
45+
text-underline-offset: 0 !important;
6446
color: #212b32;
65-
text-decoration: none;
47+
display: inline;
48+
49+
// Responsive: add 1px more padding on smaller screens
50+
@media (max-width: 768px) {
51+
box-shadow: 0 -5px #ffeb3b, 0 5px #212b32;
52+
}
53+
54+
.nhsuk-heading-s {
55+
color: #212b32;
56+
text-decoration: none !important;
57+
text-underline-offset: 0 !important;
58+
}
6659
}
6760
}
6861
}

0 commit comments

Comments
 (0)