Skip to content

Commit 0908ec4

Browse files
committed
Update Panel to use inverse-text
Update `--govuk-text-colour` alongside `color` to automatically affect any component injected in the panel.
1 parent feb372a commit 0908ec4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@
3636
}
3737

3838
.govuk-panel--confirmation {
39-
color: base.govuk-colour("white");
40-
background: base.govuk-colour("green");
39+
--govuk-text-colour: #{base.govuk-functional-colour(inverse-text)};
40+
color: base.govuk-functional-colour(text);
41+
background: base.govuk-functional-colour(success);
4142

4243
@media print {
44+
--govuk-text-colour: inherit;
4345
border-color: currentcolor;
44-
color: base.govuk-functional-colour(text);
4546
background: none;
4647
}
4748
}

0 commit comments

Comments
 (0)