Add interruption panel - make sure Panel print styles apply to modifiers#7240
Merged
NickColley merged 1 commit intoJul 2, 2026
Merged
Conversation
Move to below the modifiers for Confirmation and Interruption so that the print styles have higher precedence.
Stylesheets changes to npm packagediff --git a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
index 93d224815..9e949019e 100644
--- a/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
+++ b/packages/govuk-frontend/dist/govuk/govuk-frontend.min.css
@@ -4255,14 +4255,6 @@ screen and (forced-colors:active) {
}
}
-@media print {
- .govuk-panel {
- --govuk-text-colour: inherit;
- border-color: currentcolor;
- background: none
- }
-}
-
.govuk-panel__title {
font-size: 2rem;
line-height: 1.09375;
@@ -4303,6 +4295,14 @@ screen and (forced-colors:active) {
text-align: left
}
+@media print {
+ .govuk-panel {
+ --govuk-text-colour: inherit;
+ border-color: currentcolor;
+ background: none
+ }
+}
+
@media (min-width:20em) {
.govuk-password-input__wrapper {
flex-direction: row;
Action run for 73ee614 |
Other changes to npm packagediff --git a/packages/govuk-frontend/dist/govuk/components/panel/_mixin.scss b/packages/govuk-frontend/dist/govuk/components/panel/_mixin.scss
index a91cca73b..9b095e041 100644
--- a/packages/govuk-frontend/dist/govuk/components/panel/_mixin.scss
+++ b/packages/govuk-frontend/dist/govuk/components/panel/_mixin.scss
@@ -34,12 +34,6 @@
// it but the the text remains legible.
overflow-wrap: break-word;
}
-
- @media print {
- --govuk-text-colour: inherit;
- border-color: currentcolor;
- background: none;
- }
}
.govuk-panel__title {
@@ -63,5 +57,13 @@
background: base.govuk-functional-colour(brand);
text-align: left;
}
+
+ @media print {
+ .govuk-panel {
+ --govuk-text-colour: inherit;
+ border-color: currentcolor;
+ background: none;
+ }
+ }
}
Action run for 73ee614 |
📋 StatsNo changes to any distributed file sizes! Action run for 73ee614 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
A final review will be available once we get the contribution branch ready
I will manually merge this into #6636 once approved since we cant merge into a external repo via GitHub
Move to below the modifiers for Confirmation and Interruption so that the print styles have higher precedence.
Screenshot of Confirmation and Interruption Panel variants in print render mode
Note that there are issues with the button in print mode but this is unrelated to the Panel so should be considered separately.