Skip to content

Commit d82f21e

Browse files
committed
Make sure Panel print styles apply to modifiers
Move to below the modifiers for Confirmation and Interruption so that the print styles have higher precedence.
1 parent b0f59a1 commit d82f21e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • packages/govuk-frontend/src/govuk/components/panel

packages/govuk-frontend/src/govuk/components/panel/_mixin.scss

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
// it but the the text remains legible.
3535
overflow-wrap: break-word;
3636
}
37-
38-
@media print {
39-
--govuk-text-colour: inherit;
40-
border-color: currentcolor;
41-
background: none;
42-
}
4337
}
4438

4539
.govuk-panel__title {
@@ -63,4 +57,12 @@
6357
background: base.govuk-functional-colour(brand);
6458
text-align: left;
6559
}
60+
61+
@media print {
62+
.govuk-panel {
63+
--govuk-text-colour: inherit;
64+
border-color: currentcolor;
65+
background: none;
66+
}
67+
}
6668
}

0 commit comments

Comments
 (0)