nhsuk-frontend 10.2.0 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  *
11
11
  * {@link https://github.com/nhsuk/nhsuk-frontend/releases}
12
12
  */
13
- const version = '10.2.0';
13
+ const version = '10.2.1';
14
14
 
15
15
  exports.version = version;
16
16
  //# sourceMappingURL=nhsuk-frontend-version.js.map
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * {@link https://github.com/nhsuk/nhsuk-frontend/releases}
10
10
  */
11
- const version = '10.2.0';
11
+ const version = '10.2.1';
12
12
 
13
13
  export { version };
14
14
  //# sourceMappingURL=nhsuk-frontend-version.mjs.map
@@ -177,14 +177,14 @@ $card-border-hover-colour: $nhsuk-card-border-hover-colour;
177
177
  @include nhsuk-panel-with-label($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);
178
178
  }
179
179
 
180
- .nhsuk-card--feature .nhsuk-card__heading,
180
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
181
181
  // Deprecated, to be removed in v11.0
182
182
  .nhsuk-card__heading--feature {
183
183
  @include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour);
184
184
  }
185
185
 
186
- .nhsuk-card--feature .nhsuk-card__heading-container,
187
- .nhsuk-card--feature .nhsuk-card__content,
186
+ .nhsuk-card--feature > .nhsuk-card__heading-container,
187
+ .nhsuk-card--feature > .nhsuk-card__content,
188
188
  // Deprecated, to be removed in v11.0
189
189
  .nhsuk-card__content--feature {
190
190
  padding: 0; // [7]
@@ -197,7 +197,7 @@ $card-border-hover-colour: $nhsuk-card-border-hover-colour;
197
197
  @include nhsuk-responsive-margin(7, "top");
198
198
  }
199
199
 
200
- .nhsuk-card--care .nhsuk-card__heading-container,
200
+ .nhsuk-card--care > .nhsuk-card__heading-container,
201
201
  // Deprecated, to be removed in v11.0
202
202
  .nhsuk-card--care__heading-container {
203
203
  position: relative;
@@ -206,7 +206,7 @@ $card-border-hover-colour: $nhsuk-card-border-hover-colour;
206
206
  border-bottom: 1px solid transparent;
207
207
  }
208
208
 
209
- .nhsuk-card--care .nhsuk-card__heading,
209
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
210
210
  // Deprecated, to be removed in v11.0
211
211
  .nhsuk-card--care__heading {
212
212
  margin: 0;
@@ -315,7 +315,7 @@ $card-border-hover-colour: $nhsuk-card-border-hover-colour;
315
315
 
316
316
  // Card primary
317
317
 
318
- .nhsuk-card--primary .nhsuk-card__content,
318
+ .nhsuk-card--primary > .nhsuk-card__content,
319
319
  // Deprecated, to be removed in v11.0
320
320
  .nhsuk-card__content--primary {
321
321
  @include nhsuk-responsive-spacing(5, "padding", $direction: "right", $adjustment: nhsuk-spacing(7));
@@ -355,8 +355,8 @@ $card-border-hover-colour: $nhsuk-card-border-hover-colour;
355
355
  background: transparent;
356
356
  }
357
357
 
358
- .nhsuk-card--secondary .nhsuk-card__heading-container,
359
- .nhsuk-card--secondary .nhsuk-card__content,
358
+ .nhsuk-card--secondary > .nhsuk-card__heading-container,
359
+ .nhsuk-card--secondary > .nhsuk-card__content,
360
360
  // Deprecated, to be removed in v11.0
361
361
  .nhsuk-card__content--secondary {
362
362
  padding-top: 0;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/nhsuk/components/card/_index.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;AAC9B,kCAAkC;;AAElC,GAAG;AACH,iBAAiB;AACjB,EAAE;AACF,iFAAiF;AACjF,kEAAkE;AAClE,uBAAuB;AACvB,qDAAqD;AACrD,sEAAsE;AACtE,sEAAsE;AACtE,iEAAiE;AACjE,4EAA4E;AAC5E,mEAAmE;AACnE,oDAAoD;AACpD,uEAAuE;AACvE,mEAAmE;AACnE,+CAA+C;AAC/C,4DAA4D;AAC5D,uEAAuE;AACvE,6EAA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Ac;;MAEd,kBAAkB;MAClB,QAAQ;;MAER,8CAA8C;MAC9C,+CAA+C;MAC/C,4DAA4D;;MAE5D,oBAAoB;;MAEpB,wBAAwB;MACxB,6CAA6C;IAC/C;EACF;;EAEA,gBAAgB;;EAEhB;IACE,aAAa;IACb,eAAe;IACf,8EAA8E;IAC9E,cAAc;IACd,uBAAuB;EACzB;;EAEA;;;;IAIE,cAAc;IACd,gBAAgB;IAChB,eAAe;EACjB;AACF","file":"_index.scss","sourcesContent":["@use \"sass:math\";\n@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\n@forward \"../../core/styles/icons\";\n\n////\n/// Card component\n///\n/// 1. Is needed for the :active top positioning, and invisible clickable overlay.\n/// 2. Border is used to create a divider between the white content\n/// box and an image.\n/// 3. Creates the 'pressed down' effect when clicked.\n/// 4. Removes padding-top from headings directly after the card group.\n/// 5. Includes the border width to achieve the correct left alignment.\n/// 6. Stops the heading from spanning the full width of the card.\n/// 7. Removes padding as added to container by nhsuk-panel-with-label mixin.\n/// 8. Default care card colour set to blue (non-urgent care card) -\n/// using the @mixin care-card tools/_mixins.scss.\n/// The same mixin is used for each care card, setting the background\n/// colour,text colour and print border width with the variables.\n/// 9. 'Random number' for the heading triangle.\n/// 10. 'Random number' for the heading triangle positioning.\n/// 11. 'Random number' used for spacing to compensate for the triangle.\n/// 12. Needed to enable the triangle to show correctly in high contrast mode.\n/// 13. Prevent additional padding on headings\n/// 14. Give the action link icon sufficient contrast when used in the emergency variant\n/// 15. Reset the positioning to the default [1] to display heading triangle on a coloured background.\n/// 16. Emergency care card <a> needs to be white because the background colour is black.\n/// 17. Trick IE10 into rendering the invisible clickable area. Without this it does not.\n///\n/// @group components/card\n////\n\n$nhsuk-card-border-width: 1px;\n$nhsuk-card-border-bottom-width: nhsuk-spacing(1);\n$nhsuk-card-border-colour: $nhsuk-border-colour;\n$nhsuk-card-border-hover-colour: $nhsuk-border-hover-colour;\n\n// @deprecated To be removed in v11.0\n$card-border-width: $nhsuk-card-border-width;\n$card-border-bottom-width: $nhsuk-card-border-bottom-width;\n$card-border-color: $nhsuk-card-border-colour;\n$card-border-colour: $nhsuk-card-border-colour;\n$card-border-hover-color: $nhsuk-card-border-hover-colour;\n$card-border-hover-colour: $nhsuk-card-border-hover-colour;\n\n@include nhsuk-exports(\"nhsuk/components/card\") {\n .nhsuk-card {\n box-sizing: border-box;\n position: relative; // [1]\n width: 100%;\n\n @include nhsuk-panel($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);\n }\n\n .nhsuk-card__img {\n display: block;\n width: 100%;\n border-bottom: $nhsuk-card-border-width solid nhsuk-colour(\"grey-5\"); // [2]\n\n @include nhsuk-print-hide;\n }\n\n .nhsuk-card__content {\n @include nhsuk-top-and-bottom;\n @include nhsuk-responsive-padding(5);\n }\n\n .nhsuk-card__heading {\n margin-bottom: nhsuk-spacing(3);\n\n &:has(+ .nhsuk-icon) {\n margin-bottom: 0;\n }\n }\n\n .nhsuk-card__heading-container,\n // Deprecated, to be removed in v11.0\n .nhsuk-card--care__heading-container {\n @include nhsuk-responsive-padding(5);\n }\n\n .nhsuk-card__heading-container {\n &:last-child {\n @include nhsuk-top-and-bottom;\n }\n\n &:not(:last-child) {\n padding-bottom: 0;\n }\n\n + .nhsuk-card__content {\n padding-top: 0;\n }\n }\n\n .nhsuk-card__description {\n margin-bottom: 0;\n }\n\n // Clickable card\n\n .nhsuk-card--clickable {\n border-bottom-width: $nhsuk-card-border-bottom-width;\n\n .nhsuk-card__heading a,\n .nhsuk-card__link {\n &::before {\n content: \"\";\n\n display: block;\n\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n background-color: rgba(255, 255, 255, 0); // [17]\n }\n }\n\n &:active {\n bottom: -$nhsuk-card-border-width; // [3]\n border-color: $nhsuk-card-border-hover-colour;\n }\n }\n\n // Card group\n //\n // Allows you to have a row of cards.\n // Flexbox is used to make each card in a row the same height.\n\n .nhsuk-card-group {\n margin-bottom: nhsuk-spacing(3);\n padding: 0;\n\n @include nhsuk-flex;\n\n @include nhsuk-media-query($until: desktop) {\n margin-bottom: nhsuk-spacing(6);\n }\n\n + h2,\n + .nhsuk-heading-l,\n + h3,\n + .nhsuk-heading-m {\n padding-top: 0; // [4]\n }\n }\n\n .nhsuk-card-group__item {\n margin-bottom: 0;\n list-style-type: none;\n\n @include nhsuk-flex-item;\n\n .nhsuk-card {\n margin-bottom: nhsuk-spacing(5);\n }\n\n @include nhsuk-media-query($until: desktop) {\n .nhsuk-card {\n margin-bottom: nhsuk-spacing(3);\n }\n\n &:last-child .nhsuk-card {\n margin-bottom: 0;\n }\n }\n }\n\n // Card feature\n\n .nhsuk-card--feature {\n @include nhsuk-panel-with-label($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);\n }\n\n .nhsuk-card--feature .nhsuk-card__heading,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__heading--feature {\n @include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour);\n }\n\n .nhsuk-card--feature .nhsuk-card__heading-container,\n .nhsuk-card--feature .nhsuk-card__content,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--feature {\n padding: 0; // [7]\n }\n\n // Care card\n\n .nhsuk-card--care {\n @include nhsuk-care-card($nhsuk-brand-colour, $nhsuk-reverse-text-colour, 4px); // [8]\n @include nhsuk-responsive-margin(7, \"top\");\n }\n\n .nhsuk-card--care .nhsuk-card__heading-container,\n // Deprecated, to be removed in v11.0\n .nhsuk-card--care__heading-container {\n position: relative;\n padding-top: nhsuk-spacing(3);\n padding-bottom: nhsuk-spacing(3) - 1px;\n border-bottom: 1px solid transparent;\n }\n\n .nhsuk-card--care .nhsuk-card__heading,\n // Deprecated, to be removed in v11.0\n .nhsuk-card--care__heading {\n margin: 0;\n padding-top: 0; // [13]\n\n @include nhsuk-font(26, $weight: bold);\n @include nhsuk-print-colour;\n }\n\n .nhsuk-card--care__arrow {\n display: block;\n\n position: absolute;\n bottom: -11px; // [9]\n left: 30px; // [10]\n\n width: 20px; // [9]\n height: 20px; // [9]\n\n overflow: hidden;\n\n transform: rotate(45deg);\n @include nhsuk-print-hide;\n\n @include nhsuk-media-query($from: tablet) {\n left: 38px; // [10]\n }\n\n &::before,\n &::after {\n content: \"\";\n\n display: block;\n\n position: absolute;\n top: 0;\n\n width: 0;\n height: 0;\n\n transform: rotate(45deg); // [12]\n\n border: solid 32px $nhsuk-brand-colour; // [9]\n }\n }\n\n .nhsuk-card--care .nhsuk-card__content {\n @include nhsuk-responsive-padding(5, \"top\");\n }\n\n .nhsuk-card--care--urgent {\n @include nhsuk-care-card(nhsuk-colour(\"red\"), $nhsuk-reverse-text-colour, 6px);\n\n .nhsuk-card--care__arrow {\n &::before,\n &::after {\n border-color: nhsuk-colour(\"red\");\n }\n }\n }\n\n .nhsuk-card--care--emergency {\n @include nhsuk-care-card(nhsuk-colour(\"red\"), $nhsuk-reverse-text-colour, 8px);\n\n .nhsuk-card--care__arrow {\n &::before,\n &::after {\n border-color: nhsuk-colour(\"red\");\n }\n }\n\n .nhsuk-card__content {\n position: static; // [15]\n border: 0;\n color: $nhsuk-reverse-text-colour;\n background-color: nhsuk-colour(\"black\");\n\n a:not(.nhsuk-action-link):not(.nhsuk-button) {\n @include nhsuk-link-style-white;\n }\n\n @include nhsuk-print-colour {\n background-color: $nhsuk-card-background-colour;\n }\n }\n\n .nhsuk-details,\n .nhsuk-details__summary {\n color: $nhsuk-reverse-text-colour;\n }\n\n .nhsuk-details__summary {\n &:hover {\n color: $nhsuk-reverse-text-colour;\n }\n\n &:focus {\n color: $nhsuk-focus-text-colour;\n }\n }\n\n .nhsuk-action-link__link .nhsuk-icon {\n fill: $nhsuk-reverse-text-colour; // [14]\n }\n }\n\n // Card primary\n\n .nhsuk-card--primary .nhsuk-card__content,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--primary {\n @include nhsuk-responsive-spacing(5, \"padding\", $direction: \"right\", $adjustment: nhsuk-spacing(7));\n\n @include nhsuk-media-query($from: desktop) {\n height: 100%;\n }\n }\n\n .nhsuk-card--primary,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--primary {\n .nhsuk-icon {\n display: block;\n\n position: absolute;\n top: 50%;\n\n width: nhsuk-px-to-rem($nhsuk-icon-size-large);\n height: nhsuk-px-to-rem($nhsuk-icon-size-large);\n margin-top: math.floor(math.div($nhsuk-icon-size-large, -2));\n\n pointer-events: none;\n\n fill: $nhsuk-link-colour;\n @include nhsuk-responsive-spacing(5, \"right\");\n }\n }\n\n // Card secondary\n\n .nhsuk-card--secondary {\n border-top: 0;\n border-right: 0;\n border-bottom: $nhsuk-card-border-bottom-width solid $nhsuk-card-border-colour;\n border-left: 0;\n background: transparent;\n }\n\n .nhsuk-card--secondary .nhsuk-card__heading-container,\n .nhsuk-card--secondary .nhsuk-card__content,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--secondary {\n padding-top: 0;\n padding-right: 0;\n padding-left: 0;\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../../src/nhsuk/components/card/_index.scss"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,+BAA+B;AAC/B,4BAA4B;AAC5B,8BAA8B;AAC9B,kCAAkC;;AAElC,GAAG;AACH,iBAAiB;AACjB,EAAE;AACF,iFAAiF;AACjF,kEAAkE;AAClE,uBAAuB;AACvB,qDAAqD;AACrD,sEAAsE;AACtE,sEAAsE;AACtE,iEAAiE;AACjE,4EAA4E;AAC5E,mEAAmE;AACnE,oDAAoD;AACpD,uEAAuE;AACvE,mEAAmE;AACnE,+CAA+C;AAC/C,4DAA4D;AAC5D,uEAAuE;AACvE,6EAA6E;AAC7E,6CAA6C;AAC7C,uFAAuF;AACvF,qGAAqG;AACrG,wFAAwF;AACxF,wFAAwF;AACxF,EAAE;AACF,yBAAyB;AACzB,GAAG;;AAEH,6BAA6B;AAC7B,iDAAiD;AACjD,+CAA+C;AAC/C,2DAA2D;;AAE3D,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ACf,8EAA8E;IAC9E,cAAc;IACd,uBAAuB;EACzB;;EAEA;;;;IAIE,cAAc;IACd,gBAAgB;IAChB,eAAe;EACjB;AACF","file":"_index.scss","sourcesContent":["@use \"sass:math\";\n@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n@use \"../../core/helpers\" as *;\n@forward \"../../core/styles/icons\";\n\n////\n/// Card component\n///\n/// 1. Is needed for the :active top positioning, and invisible clickable overlay.\n/// 2. Border is used to create a divider between the white content\n/// box and an image.\n/// 3. Creates the 'pressed down' effect when clicked.\n/// 4. Removes padding-top from headings directly after the card group.\n/// 5. Includes the border width to achieve the correct left alignment.\n/// 6. Stops the heading from spanning the full width of the card.\n/// 7. Removes padding as added to container by nhsuk-panel-with-label mixin.\n/// 8. Default care card colour set to blue (non-urgent care card) -\n/// using the @mixin care-card tools/_mixins.scss.\n/// The same mixin is used for each care card, setting the background\n/// colour,text colour and print border width with the variables.\n/// 9. 'Random number' for the heading triangle.\n/// 10. 'Random number' for the heading triangle positioning.\n/// 11. 'Random number' used for spacing to compensate for the triangle.\n/// 12. Needed to enable the triangle to show correctly in high contrast mode.\n/// 13. Prevent additional padding on headings\n/// 14. Give the action link icon sufficient contrast when used in the emergency variant\n/// 15. Reset the positioning to the default [1] to display heading triangle on a coloured background.\n/// 16. Emergency care card <a> needs to be white because the background colour is black.\n/// 17. Trick IE10 into rendering the invisible clickable area. Without this it does not.\n///\n/// @group components/card\n////\n\n$nhsuk-card-border-width: 1px;\n$nhsuk-card-border-bottom-width: nhsuk-spacing(1);\n$nhsuk-card-border-colour: $nhsuk-border-colour;\n$nhsuk-card-border-hover-colour: $nhsuk-border-hover-colour;\n\n// @deprecated To be removed in v11.0\n$card-border-width: $nhsuk-card-border-width;\n$card-border-bottom-width: $nhsuk-card-border-bottom-width;\n$card-border-color: $nhsuk-card-border-colour;\n$card-border-colour: $nhsuk-card-border-colour;\n$card-border-hover-color: $nhsuk-card-border-hover-colour;\n$card-border-hover-colour: $nhsuk-card-border-hover-colour;\n\n@include nhsuk-exports(\"nhsuk/components/card\") {\n .nhsuk-card {\n box-sizing: border-box;\n position: relative; // [1]\n width: 100%;\n\n @include nhsuk-panel($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);\n }\n\n .nhsuk-card__img {\n display: block;\n width: 100%;\n border-bottom: $nhsuk-card-border-width solid nhsuk-colour(\"grey-5\"); // [2]\n\n @include nhsuk-print-hide;\n }\n\n .nhsuk-card__content {\n @include nhsuk-top-and-bottom;\n @include nhsuk-responsive-padding(5);\n }\n\n .nhsuk-card__heading {\n margin-bottom: nhsuk-spacing(3);\n\n &:has(+ .nhsuk-icon) {\n margin-bottom: 0;\n }\n }\n\n .nhsuk-card__heading-container,\n // Deprecated, to be removed in v11.0\n .nhsuk-card--care__heading-container {\n @include nhsuk-responsive-padding(5);\n }\n\n .nhsuk-card__heading-container {\n &:last-child {\n @include nhsuk-top-and-bottom;\n }\n\n &:not(:last-child) {\n padding-bottom: 0;\n }\n\n + .nhsuk-card__content {\n padding-top: 0;\n }\n }\n\n .nhsuk-card__description {\n margin-bottom: 0;\n }\n\n // Clickable card\n\n .nhsuk-card--clickable {\n border-bottom-width: $nhsuk-card-border-bottom-width;\n\n .nhsuk-card__heading a,\n .nhsuk-card__link {\n &::before {\n content: \"\";\n\n display: block;\n\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n background-color: rgba(255, 255, 255, 0); // [17]\n }\n }\n\n &:active {\n bottom: -$nhsuk-card-border-width; // [3]\n border-color: $nhsuk-card-border-hover-colour;\n }\n }\n\n // Card group\n //\n // Allows you to have a row of cards.\n // Flexbox is used to make each card in a row the same height.\n\n .nhsuk-card-group {\n margin-bottom: nhsuk-spacing(3);\n padding: 0;\n\n @include nhsuk-flex;\n\n @include nhsuk-media-query($until: desktop) {\n margin-bottom: nhsuk-spacing(6);\n }\n\n + h2,\n + .nhsuk-heading-l,\n + h3,\n + .nhsuk-heading-m {\n padding-top: 0; // [4]\n }\n }\n\n .nhsuk-card-group__item {\n margin-bottom: 0;\n list-style-type: none;\n\n @include nhsuk-flex-item;\n\n .nhsuk-card {\n margin-bottom: nhsuk-spacing(5);\n }\n\n @include nhsuk-media-query($until: desktop) {\n .nhsuk-card {\n margin-bottom: nhsuk-spacing(3);\n }\n\n &:last-child .nhsuk-card {\n margin-bottom: 0;\n }\n }\n }\n\n // Card feature\n\n .nhsuk-card--feature {\n @include nhsuk-panel-with-label($nhsuk-card-background-colour, $nhsuk-text-colour, $nhsuk-card-border-colour);\n }\n\n .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__heading--feature {\n @include nhsuk-heading-label($nhsuk-brand-colour, $nhsuk-reverse-text-colour);\n }\n\n .nhsuk-card--feature > .nhsuk-card__heading-container,\n .nhsuk-card--feature > .nhsuk-card__content,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--feature {\n padding: 0; // [7]\n }\n\n // Care card\n\n .nhsuk-card--care {\n @include nhsuk-care-card($nhsuk-brand-colour, $nhsuk-reverse-text-colour, 4px); // [8]\n @include nhsuk-responsive-margin(7, \"top\");\n }\n\n .nhsuk-card--care > .nhsuk-card__heading-container,\n // Deprecated, to be removed in v11.0\n .nhsuk-card--care__heading-container {\n position: relative;\n padding-top: nhsuk-spacing(3);\n padding-bottom: nhsuk-spacing(3) - 1px;\n border-bottom: 1px solid transparent;\n }\n\n .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,\n // Deprecated, to be removed in v11.0\n .nhsuk-card--care__heading {\n margin: 0;\n padding-top: 0; // [13]\n\n @include nhsuk-font(26, $weight: bold);\n @include nhsuk-print-colour;\n }\n\n .nhsuk-card--care__arrow {\n display: block;\n\n position: absolute;\n bottom: -11px; // [9]\n left: 30px; // [10]\n\n width: 20px; // [9]\n height: 20px; // [9]\n\n overflow: hidden;\n\n transform: rotate(45deg);\n @include nhsuk-print-hide;\n\n @include nhsuk-media-query($from: tablet) {\n left: 38px; // [10]\n }\n\n &::before,\n &::after {\n content: \"\";\n\n display: block;\n\n position: absolute;\n top: 0;\n\n width: 0;\n height: 0;\n\n transform: rotate(45deg); // [12]\n\n border: solid 32px $nhsuk-brand-colour; // [9]\n }\n }\n\n .nhsuk-card--care .nhsuk-card__content {\n @include nhsuk-responsive-padding(5, \"top\");\n }\n\n .nhsuk-card--care--urgent {\n @include nhsuk-care-card(nhsuk-colour(\"red\"), $nhsuk-reverse-text-colour, 6px);\n\n .nhsuk-card--care__arrow {\n &::before,\n &::after {\n border-color: nhsuk-colour(\"red\");\n }\n }\n }\n\n .nhsuk-card--care--emergency {\n @include nhsuk-care-card(nhsuk-colour(\"red\"), $nhsuk-reverse-text-colour, 8px);\n\n .nhsuk-card--care__arrow {\n &::before,\n &::after {\n border-color: nhsuk-colour(\"red\");\n }\n }\n\n .nhsuk-card__content {\n position: static; // [15]\n border: 0;\n color: $nhsuk-reverse-text-colour;\n background-color: nhsuk-colour(\"black\");\n\n a:not(.nhsuk-action-link):not(.nhsuk-button) {\n @include nhsuk-link-style-white;\n }\n\n @include nhsuk-print-colour {\n background-color: $nhsuk-card-background-colour;\n }\n }\n\n .nhsuk-details,\n .nhsuk-details__summary {\n color: $nhsuk-reverse-text-colour;\n }\n\n .nhsuk-details__summary {\n &:hover {\n color: $nhsuk-reverse-text-colour;\n }\n\n &:focus {\n color: $nhsuk-focus-text-colour;\n }\n }\n\n .nhsuk-action-link__link .nhsuk-icon {\n fill: $nhsuk-reverse-text-colour; // [14]\n }\n }\n\n // Card primary\n\n .nhsuk-card--primary > .nhsuk-card__content,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--primary {\n @include nhsuk-responsive-spacing(5, \"padding\", $direction: \"right\", $adjustment: nhsuk-spacing(7));\n\n @include nhsuk-media-query($from: desktop) {\n height: 100%;\n }\n }\n\n .nhsuk-card--primary,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--primary {\n .nhsuk-icon {\n display: block;\n\n position: absolute;\n top: 50%;\n\n width: nhsuk-px-to-rem($nhsuk-icon-size-large);\n height: nhsuk-px-to-rem($nhsuk-icon-size-large);\n margin-top: math.floor(math.div($nhsuk-icon-size-large, -2));\n\n pointer-events: none;\n\n fill: $nhsuk-link-colour;\n @include nhsuk-responsive-spacing(5, \"right\");\n }\n }\n\n // Card secondary\n\n .nhsuk-card--secondary {\n border-top: 0;\n border-right: 0;\n border-bottom: $nhsuk-card-border-bottom-width solid $nhsuk-card-border-colour;\n border-left: 0;\n background: transparent;\n }\n\n .nhsuk-card--secondary > .nhsuk-card__heading-container,\n .nhsuk-card--secondary > .nhsuk-card__content,\n // Deprecated, to be removed in v11.0\n .nhsuk-card__content--secondary {\n padding-top: 0;\n padding-right: 0;\n padding-left: 0;\n }\n}\n"]}
@@ -36,6 +36,42 @@
36
36
  "options": {},
37
37
  "html": "<div class=\"nhsuk-card\">\n <div class=\"nhsuk-card__content\">\n <h3 class=\"nhsuk-card__heading\">\n Help from NHS 111\n </h3>\n <p class=\"nhsuk-body\">If you're worried about a symptom and not sure what help you need, NHS 111 can tell you what to do next.</p>\n<p class=\"nhsuk-body\">Go to <a href=\"#\">111.nhs.uk</a> or <a href=\"#\">call 111</a>.</p>\n<p class=\"nhsuk-body\">For a life-threatening emergency call 999.</p>\n </div>\n</div>"
38
38
  },
39
+ {
40
+ "name": "basic with heading link",
41
+ "context": {
42
+ "heading": "Introduction to care and support",
43
+ "headingClasses": "nhsuk-heading-m",
44
+ "headingLevel": 3,
45
+ "href": "#",
46
+ "description": "A quick guide for people who have care and support needs and their carers"
47
+ },
48
+ "screenshot": false,
49
+ "options": {},
50
+ "html": "<div class=\"nhsuk-card\">\n <div class=\"nhsuk-card__content\">\n <h3 class=\"nhsuk-card__heading nhsuk-heading-m\">\n <a class=\"nhsuk-card__link\" href=\"#\">Introduction to care and support</a>\n </h3>\n <p class=\"nhsuk-card__description\">A quick guide for people who have care and support needs and their carers</p>\n </div>\n</div>"
51
+ },
52
+ {
53
+ "name": "basic with summary list",
54
+ "context": {
55
+ "heading": "Regional Manager",
56
+ "headingLevel": 3
57
+ },
58
+ "callBlock": "<dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Name\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n Karen Francis\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date of birth\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 15 March 1984\n </dd>\n </div>\n</dl>\n",
59
+ "screenshot": false,
60
+ "options": {},
61
+ "html": "<div class=\"nhsuk-card\">\n <div class=\"nhsuk-card__content\">\n <h3 class=\"nhsuk-card__heading\">\n Regional Manager\n </h3>\n <dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Name\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n Karen Francis\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date of birth\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 15 March 1984\n </dd>\n </div>\n</dl>\n </div>\n</div>"
62
+ },
63
+ {
64
+ "name": "basic with summary list and heading link",
65
+ "context": {
66
+ "heading": "Regional Manager",
67
+ "headingLevel": 3,
68
+ "href": "#"
69
+ },
70
+ "callBlock": "<dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Name\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n Karen Francis\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date of birth\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 15 March 1984\n </dd>\n </div>\n</dl>\n",
71
+ "screenshot": false,
72
+ "options": {},
73
+ "html": "<div class=\"nhsuk-card\">\n <div class=\"nhsuk-card__content\">\n <h3 class=\"nhsuk-card__heading\">\n <a class=\"nhsuk-card__link\" href=\"#\">Regional Manager</a>\n </h3>\n <dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Name\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n Karen Francis\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date of birth\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 15 March 1984\n </dd>\n </div>\n</dl>\n </div>\n</div>"
74
+ },
39
75
  {
40
76
  "name": "clickable",
41
77
  "context": {
@@ -89,9 +125,7 @@
89
125
  "name": "feature",
90
126
  "context": {
91
127
  "feature": true,
92
- "href": "#",
93
128
  "heading": "Feature card heading",
94
- "headingClasses": "nhsuk-heading-m",
95
129
  "description": "Feature card description."
96
130
  },
97
131
  "screenshot": {
@@ -102,7 +136,29 @@
102
136
  ]
103
137
  },
104
138
  "options": {},
105
- "html": "<div class=\"nhsuk-card nhsuk-card--feature\">\n <div class=\"nhsuk-card__content\">\n <h2 class=\"nhsuk-card__heading nhsuk-heading-m\">\n Feature card heading\n </h2>\n <p class=\"nhsuk-card__description\">Feature card description.</p>\n </div>\n</div>"
139
+ "html": "<div class=\"nhsuk-card nhsuk-card--feature\">\n <div class=\"nhsuk-card__content\">\n <h2 class=\"nhsuk-card__heading\">\n Feature card heading\n </h2>\n <p class=\"nhsuk-card__description\">Feature card description.</p>\n </div>\n</div>"
140
+ },
141
+ {
142
+ "name": "feature with nested card and summary list",
143
+ "context": {
144
+ "feature": true,
145
+ "heading": "Flu: Follow-up requested"
146
+ },
147
+ "callBlock": "<p>Sarah Philips (Mum) would like to speak to a member of the team about other options for their child's vaccination.</p>\n<a class=\"nhsuk-button nhsuk-button--secondary\" href=\"#\">Record a new consent response</a>\n\n<h3 class=\"nhsuk-heading-s\">Consent responses</h3>\n\n<div class=\"nhsuk-card nhsuk-card--clickable\">\n <div class=\"nhsuk-card__content\">\n <h4 class=\"nhsuk-card__heading\">\n <a class=\"nhsuk-card__link\" href=\"#\">Sarah Philips (Mum)</a>\n </h4>\n <dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Email address\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n sarah.philips@example.com\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 25 August 2025 at 4:04 pm\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row nhsuk-summary-list__row--no-border\">\n <dt class=\"nhsuk-summary-list__key\">\n Response\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n <strong class=\"nhsuk-tag nhsuk-tag--orange\">\n Follow up requested\n </strong>\n </dd>\n </div>\n</dl>\n </div>\n</div>\n",
148
+ "screenshot": false,
149
+ "options": {},
150
+ "html": "<div class=\"nhsuk-card nhsuk-card--feature\">\n <div class=\"nhsuk-card__content\">\n <h2 class=\"nhsuk-card__heading\">\n Flu: Follow-up requested\n </h2>\n <p>Sarah Philips (Mum) would like to speak to a member of the team about other options for their child's vaccination.</p>\n<a class=\"nhsuk-button nhsuk-button--secondary\" href=\"#\">Record a new consent response</a>\n\n<h3 class=\"nhsuk-heading-s\">Consent responses</h3>\n\n<div class=\"nhsuk-card nhsuk-card--clickable\">\n <div class=\"nhsuk-card__content\">\n <h4 class=\"nhsuk-card__heading\">\n <a class=\"nhsuk-card__link\" href=\"#\">Sarah Philips (Mum)</a>\n </h4>\n <dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Email address\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n sarah.philips@example.com\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 25 August 2025 at 4:04 pm\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row nhsuk-summary-list__row--no-border\">\n <dt class=\"nhsuk-summary-list__key\">\n Response\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n <strong class=\"nhsuk-tag nhsuk-tag--orange\">\n Follow up requested\n </strong>\n </dd>\n </div>\n</dl>\n </div>\n</div>\n </div>\n</div>"
151
+ },
152
+ {
153
+ "name": "feature with summary list",
154
+ "context": {
155
+ "feature": true,
156
+ "heading": "Feature card heading"
157
+ },
158
+ "callBlock": "<dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Name\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n Karen Francis\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date of birth\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 15 March 1984\n </dd>\n </div>\n</dl>\n",
159
+ "screenshot": false,
160
+ "options": {},
161
+ "html": "<div class=\"nhsuk-card nhsuk-card--feature\">\n <div class=\"nhsuk-card__content\">\n <h2 class=\"nhsuk-card__heading\">\n Feature card heading\n </h2>\n <dl class=\"nhsuk-summary-list\">\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Name\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n Karen Francis\n </dd>\n </div>\n <div class=\"nhsuk-summary-list__row\">\n <dt class=\"nhsuk-summary-list__key\">\n Date of birth\n </dt>\n <dd class=\"nhsuk-summary-list__value\">\n 15 March 1984\n </dd>\n </div>\n</dl>\n </div>\n</div>"
106
162
  },
107
163
  {
108
164
  "name": "primary (with chevron)",
@@ -170,7 +226,7 @@
170
226
  "secondary": true,
171
227
  "heading": "Why we are reinvesting in the NHS Prototype kit",
172
228
  "headingClasses": "nhsuk-u-font-size-22 nhsuk-u-margin-bottom-2",
173
- "descriptionHtml": "<p class=\"nhsuk-body-s nhsuk-u-margin-bottom-2\">21 July 2025</p><p class=\"nhsuk-card__description\">Frankie and Mike explain why we revived the NHS prototype kit, the benefits of prototyping in code and how digital teams in the NHS can get started using it.</p>"
229
+ "descriptionHtml": "<p class=\"nhsuk-body-s nhsuk-u-margin-bottom-2\">21 July 2025</p>\n<p class=\"nhsuk-card__description\">Frankie and Mike explain why we revived the NHS prototype kit, the benefits of prototyping in code and how digital teams in the NHS can get started using it.</p>"
174
230
  },
175
231
  "screenshot": {
176
232
  "viewports": [
@@ -180,7 +236,7 @@
180
236
  ]
181
237
  },
182
238
  "options": {},
183
- "html": "<div class=\"nhsuk-card nhsuk-card--secondary\">\n <div class=\"nhsuk-card__content\">\n <h2 class=\"nhsuk-card__heading nhsuk-u-font-size-22 nhsuk-u-margin-bottom-2\">\n <a class=\"nhsuk-card__link\" href=\"#\">Why we are reinvesting in the NHS Prototype kit</a>\n </h2>\n <p class=\"nhsuk-body-s nhsuk-u-margin-bottom-2\">21 July 2025</p><p class=\"nhsuk-card__description\">Frankie and Mike explain why we revived the NHS prototype kit, the benefits of prototyping in code and how digital teams in the NHS can get started using it.</p>\n </div>\n</div>"
239
+ "html": "<div class=\"nhsuk-card nhsuk-card--secondary\">\n <div class=\"nhsuk-card__content\">\n <h2 class=\"nhsuk-card__heading nhsuk-u-font-size-22 nhsuk-u-margin-bottom-2\">\n <a class=\"nhsuk-card__link\" href=\"#\">Why we are reinvesting in the NHS Prototype kit</a>\n </h2>\n <p class=\"nhsuk-body-s nhsuk-u-margin-bottom-2\">21 July 2025</p>\n <p class=\"nhsuk-card__description\">Frankie and Mike explain why we revived the NHS prototype kit, the benefits of prototyping in code and how digital teams in the NHS can get started using it.</p>\n </div>\n</div>"
184
240
  },
185
241
  {
186
242
  "name": "top task",
@@ -183,6 +183,23 @@
183
183
  }
184
184
  }
185
185
  }
186
+
187
+ .nhsuk-card__content {
188
+ .nhsuk-summary-list {
189
+ margin-bottom: 0;
190
+ }
191
+
192
+ .nhsuk-summary-list__row:last-of-type {
193
+ margin-bottom: 0;
194
+ border-bottom: none;
195
+ }
196
+
197
+ .nhsuk-summary-list__row:last-of-type > :last-child {
198
+ @include nhsuk-media-query($until: tablet) {
199
+ margin-bottom: 0;
200
+ }
201
+ }
202
+ }
186
203
  }
187
204
 
188
205
  /*# sourceMappingURL=_index.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/nhsuk/components/summary-list/_index.scss"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,4BAA4B;;AAE5B,GAAG;AACH,yBAAyB;AACzB,EAAE;AACF,uDAAuD;AACvD,qCAAqC;AACrC,yDAAyD;AACzD,EAAE;AACF,iCAAiC;AACjC,6GAA6G;AAC7G,GAAG;;AAEH;EACE;IACE,SAAS,EAAE,KAAK;;IAEhB,8BAA8B;IAC9B,6CAA6C;;IAE7C;MACE,cAAc;MACd,WAAW;MACX,mBAAmB,EAAE,KAAK;MAC1B,yBAAyB;IAC3B;EACF;;EAEA;IACE,6CAA6C;;IAE7C;MACE,+BAA+B;IACjC;IACA;MACE,kBAAkB;IACpB;EACF;;EAEA,sDAAsD;EACtD;IACE,gBAAgB;EAClB;;EAEA,0EAA0E;EAC1E,uEAAuE;EACvE;IACE;MACE;QACE,WAAW;QACX,mBAAmB;QACnB,UAAU;MACZ;IACF;EACF;;EAEA;;;IAGE,sBAAsB;IACtB,SAAS,EAAE,KAAK;IAChB,mBAAmB;;IAEnB;MACE,mBAAmB;MACnB,6BAA6B;MAC7B,+BAA+B;MAC/B,gCAAgC;IAClC;EACF;;EAEA;IACE,+BAA+B;;IAE/B;MACE,UAAU;MACV,iBAAiB;IACnB;EACF;;EAEA;;IAEE,8BAA8B,EAAE,KAAK;EACvC;;EAEA;IACE,+BAA+B;;IAE/B,qCAAqC;;IAErC;MACE,UAAU;IACZ;EACF;;EAEA;IACE;MACE,+BAA+B;IACjC;EACF;;EAEA;IACE,mBAAmB;EACrB;;EAEA;IACE,gBAAgB;EAClB;;EAEA;IACE,WAAW;IACX,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,KAAK;EACnB;;EAEA;IACE,qBAAqB;;IAErB;MACE,8BAA8B;MAC9B,+BAA+B;MAC/B,4CAA4C;;MAE5C;QACE,eAAe;QACf,gBAAgB;QAChB,SAAS;MACX;IACF;;IAEA;MACE,6BAA6B;MAC7B,8BAA8B;;MAE9B;QACE,cAAc;QACd,eAAe;QACf,SAAS;MACX;;MAEA;QACE,2CAA2C;MAC7C;IACF;EACF;;EAEA,6EAA6E;EAC7E,wEAAwE;EACxE,4EAA4E;EAC5E,4EAA4E;EAC5E,4CAA4C;EAC5C;IACE,kBAAkB;EACpB;;EAEA,kCAAkC;EAClC;IACE;MACE,SAAS;IACX;;IAEA,4DAA4D;IAC5D;MACE;;;QAGE,sCAAsC;MACxC;IACF;EACF;;EAEA,4BAA4B;EAC5B;IACE,SAAS;;IAET,4DAA4D;IAC5D;MACE;;;QAGE,sCAAsC;MACxC;IACF;EACF;AACF","file":"_index.scss","sourcesContent":["@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n\n////\n/// Summary list component\n///\n/// 1. Required to allow us to wrap words that overflow.\n/// 2. Reset default user agent styles\n/// 3. Automatic wrapping for unbreakable text (e.g. URLs)\n///\n/// @group components/summary-list\n/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)\n////\n\n@include nhsuk-exports(\"nhsuk/components/summary-list\") {\n .nhsuk-summary-list {\n margin: 0; // [2]\n\n @include nhsuk-font($size: 19);\n @include nhsuk-responsive-margin(6, \"bottom\");\n\n @include nhsuk-media-query($from: tablet) {\n display: table;\n width: 100%;\n table-layout: fixed; // [1]\n border-collapse: collapse;\n }\n }\n\n .nhsuk-summary-list__row {\n border-bottom: 1px solid $nhsuk-border-colour;\n\n @include nhsuk-media-query($until: tablet) {\n margin-bottom: nhsuk-spacing(3);\n }\n @include nhsuk-media-query($from: tablet) {\n display: table-row;\n }\n }\n\n // Remove right padding from the last column in the row\n .nhsuk-summary-list__row:not(.nhsuk-summary-list__row--no-actions) > :last-child {\n padding-right: 0;\n }\n\n // Provide an empty 'cell' for rows that don't have actions – otherwise the\n // bottom border is not drawn for that part of the row in some browsers.\n .nhsuk-summary-list__row--no-actions {\n @include nhsuk-media-query($from: tablet) {\n &::after {\n content: \"\";\n display: table-cell;\n width: 20%;\n }\n }\n }\n\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value,\n .nhsuk-summary-list__actions {\n box-sizing: border-box;\n margin: 0; // [2]\n vertical-align: top;\n\n @include nhsuk-media-query($from: tablet) {\n display: table-cell;\n padding-top: nhsuk-spacing(2);\n padding-right: nhsuk-spacing(4);\n padding-bottom: nhsuk-spacing(2);\n }\n }\n\n .nhsuk-summary-list__actions {\n margin-bottom: nhsuk-spacing(3);\n\n @include nhsuk-media-query($from: tablet) {\n width: 20%;\n text-align: right;\n }\n }\n\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value {\n @include nhsuk-text-break-word; // [3]\n }\n\n .nhsuk-summary-list__key {\n margin-bottom: nhsuk-spacing(1);\n\n @include nhsuk-typography-weight-bold;\n\n @include nhsuk-media-query($from: tablet) {\n width: 30%;\n }\n }\n\n .nhsuk-summary-list__value {\n @include nhsuk-media-query($until: tablet) {\n margin-bottom: nhsuk-spacing(3);\n }\n }\n\n .nhsuk-summary-list__value > p {\n margin-bottom: 12px;\n }\n\n .nhsuk-summary-list__value > :last-child {\n margin-bottom: 0;\n }\n\n .nhsuk-summary-list__actions-list {\n width: 100%;\n margin: 0; // [2]\n padding: 0; // [2]\n }\n\n .nhsuk-summary-list__actions-list-item {\n display: inline-block;\n\n @include nhsuk-media-query($until: tablet) {\n margin-right: nhsuk-spacing(2);\n padding-right: nhsuk-spacing(2);\n border-right: 1px solid $nhsuk-border-colour;\n\n &:last-child {\n margin-right: 0;\n padding-right: 0;\n border: 0;\n }\n }\n\n @include nhsuk-media-query($from: tablet) {\n margin-left: nhsuk-spacing(2);\n padding-left: nhsuk-spacing(2);\n\n &:first-child {\n margin-left: 0;\n padding-left: 0;\n border: 0;\n }\n\n &:not(:first-child) {\n border-left: 1px solid $nhsuk-border-colour;\n }\n }\n }\n\n // Large groups of action links may wrap onto multiple lines. Because the link\n // focus styles are applied outside of the link's bounding box, there are\n // situations where the focus style on a link can be overlapped by subsequent\n // links. We don't want this, so let's create a new stacking context on focus\n // so the link always appears to be 'on top'.\n .nhsuk-summary-list__actions-list-item .nhsuk-link:focus {\n isolation: isolate;\n }\n\n // No border on entire summary list\n .nhsuk-summary-list--no-border {\n .nhsuk-summary-list__row {\n border: 0;\n }\n\n // Increase padding by 1px to compensate for 'missing' border\n @include nhsuk-media-query($from: tablet) {\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value,\n .nhsuk-summary-list__actions {\n padding-bottom: nhsuk-spacing(2) + 1px;\n }\n }\n }\n\n // No border on specific rows\n .nhsuk-summary-list__row--no-border {\n border: 0;\n\n // Increase padding by 1px to compensate for 'missing' border\n @include nhsuk-media-query($from: tablet) {\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value,\n .nhsuk-summary-list__actions {\n padding-bottom: nhsuk-spacing(2) + 1px;\n }\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["../../../../src/nhsuk/components/summary-list/_index.scss"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,4BAA4B;;AAE5B,GAAG;AACH,yBAAyB;AACzB,EAAE;AACF,uDAAuD;AACvD,qCAAqC;AACrC,yDAAyD;AACzD,EAAE;AACF,iCAAiC;AACjC,6GAA6G;AAC7G,GAAG;;AAEH;EACE;IACE,SAAS,EAAE,KAAK;;IAEhB,8BAA8B;IAC9B,6CAA6C;;IAE7C;MACE,cAAc;MACd,WAAW;MACX,mBAAmB,EAAE,KAAK;MAC1B,yBAAyB;IAC3B;EACF;;EAEA;IACE,6CAA6C;;IAE7C;MACE,+BAA+B;IACjC;IACA;MACE,kBAAkB;IACpB;EACF;;EAEA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;QACE,gBAAgB;MAClB;IACF;EACF;AACF","file":"_index.scss","sourcesContent":["@use \"../../core/settings\" as *;\n@use \"../../core/tools\" as *;\n\n////\n/// Summary list component\n///\n/// 1. Required to allow us to wrap words that overflow.\n/// 2. Reset default user agent styles\n/// 3. Automatic wrapping for unbreakable text (e.g. URLs)\n///\n/// @group components/summary-list\n/// @link https://github.com/alphagov/govuk-frontend Original code taken from GDS (Government Digital Service)\n////\n\n@include nhsuk-exports(\"nhsuk/components/summary-list\") {\n .nhsuk-summary-list {\n margin: 0; // [2]\n\n @include nhsuk-font($size: 19);\n @include nhsuk-responsive-margin(6, \"bottom\");\n\n @include nhsuk-media-query($from: tablet) {\n display: table;\n width: 100%;\n table-layout: fixed; // [1]\n border-collapse: collapse;\n }\n }\n\n .nhsuk-summary-list__row {\n border-bottom: 1px solid $nhsuk-border-colour;\n\n @include nhsuk-media-query($until: tablet) {\n margin-bottom: nhsuk-spacing(3);\n }\n @include nhsuk-media-query($from: tablet) {\n display: table-row;\n }\n }\n\n // Remove right padding from the last column in the row\n .nhsuk-summary-list__row:not(.nhsuk-summary-list__row--no-actions) > :last-child {\n padding-right: 0;\n }\n\n // Provide an empty 'cell' for rows that don't have actions – otherwise the\n // bottom border is not drawn for that part of the row in some browsers.\n .nhsuk-summary-list__row--no-actions {\n @include nhsuk-media-query($from: tablet) {\n &::after {\n content: \"\";\n display: table-cell;\n width: 20%;\n }\n }\n }\n\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value,\n .nhsuk-summary-list__actions {\n box-sizing: border-box;\n margin: 0; // [2]\n vertical-align: top;\n\n @include nhsuk-media-query($from: tablet) {\n display: table-cell;\n padding-top: nhsuk-spacing(2);\n padding-right: nhsuk-spacing(4);\n padding-bottom: nhsuk-spacing(2);\n }\n }\n\n .nhsuk-summary-list__actions {\n margin-bottom: nhsuk-spacing(3);\n\n @include nhsuk-media-query($from: tablet) {\n width: 20%;\n text-align: right;\n }\n }\n\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value {\n @include nhsuk-text-break-word; // [3]\n }\n\n .nhsuk-summary-list__key {\n margin-bottom: nhsuk-spacing(1);\n\n @include nhsuk-typography-weight-bold;\n\n @include nhsuk-media-query($from: tablet) {\n width: 30%;\n }\n }\n\n .nhsuk-summary-list__value {\n @include nhsuk-media-query($until: tablet) {\n margin-bottom: nhsuk-spacing(3);\n }\n }\n\n .nhsuk-summary-list__value > p {\n margin-bottom: 12px;\n }\n\n .nhsuk-summary-list__value > :last-child {\n margin-bottom: 0;\n }\n\n .nhsuk-summary-list__actions-list {\n width: 100%;\n margin: 0; // [2]\n padding: 0; // [2]\n }\n\n .nhsuk-summary-list__actions-list-item {\n display: inline-block;\n\n @include nhsuk-media-query($until: tablet) {\n margin-right: nhsuk-spacing(2);\n padding-right: nhsuk-spacing(2);\n border-right: 1px solid $nhsuk-border-colour;\n\n &:last-child {\n margin-right: 0;\n padding-right: 0;\n border: 0;\n }\n }\n\n @include nhsuk-media-query($from: tablet) {\n margin-left: nhsuk-spacing(2);\n padding-left: nhsuk-spacing(2);\n\n &:first-child {\n margin-left: 0;\n padding-left: 0;\n border: 0;\n }\n\n &:not(:first-child) {\n border-left: 1px solid $nhsuk-border-colour;\n }\n }\n }\n\n // Large groups of action links may wrap onto multiple lines. Because the link\n // focus styles are applied outside of the link's bounding box, there are\n // situations where the focus style on a link can be overlapped by subsequent\n // links. We don't want this, so let's create a new stacking context on focus\n // so the link always appears to be 'on top'.\n .nhsuk-summary-list__actions-list-item .nhsuk-link:focus {\n isolation: isolate;\n }\n\n // No border on entire summary list\n .nhsuk-summary-list--no-border {\n .nhsuk-summary-list__row {\n border: 0;\n }\n\n // Increase padding by 1px to compensate for 'missing' border\n @include nhsuk-media-query($from: tablet) {\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value,\n .nhsuk-summary-list__actions {\n padding-bottom: nhsuk-spacing(2) + 1px;\n }\n }\n }\n\n // No border on specific rows\n .nhsuk-summary-list__row--no-border {\n border: 0;\n\n // Increase padding by 1px to compensate for 'missing' border\n @include nhsuk-media-query($from: tablet) {\n .nhsuk-summary-list__key,\n .nhsuk-summary-list__value,\n .nhsuk-summary-list__actions {\n padding-bottom: nhsuk-spacing(2) + 1px;\n }\n }\n }\n\n .nhsuk-card__content {\n .nhsuk-summary-list {\n margin-bottom: 0;\n }\n\n .nhsuk-summary-list__row:last-of-type {\n margin-bottom: 0;\n border-bottom: none;\n }\n\n .nhsuk-summary-list__row:last-of-type > :last-child {\n @include nhsuk-media-query($until: tablet) {\n margin-bottom: 0;\n }\n }\n }\n}\n"]}
@@ -7,7 +7,7 @@
7
7
  :root {
8
8
  // This variable is automatically overwritten during builds and releases.
9
9
  // It doesn't need to be updated manually.
10
- --nhsuk-frontend-version: "10.2.0";
10
+ --nhsuk-frontend-version: "10.2.1";
11
11
 
12
12
  // CSS custom property for each breakpoint
13
13
  @each $name, $value in $nhsuk-breakpoints {
@@ -1,6 +1,6 @@
1
1
  @charset "UTF-8";
2
2
  :root {
3
- --nhsuk-frontend-version: "10.2.0";
3
+ --nhsuk-frontend-version: "10.2.1";
4
4
  --nhsuk-breakpoint-mobile: 20rem;
5
5
  --nhsuk-breakpoint-tablet: 40.0625rem;
6
6
  --nhsuk-breakpoint-desktop: 48.0625rem;
@@ -4245,7 +4245,7 @@ b {
4245
4245
  }
4246
4246
  }
4247
4247
 
4248
- .nhsuk-card--feature .nhsuk-card__heading,
4248
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
4249
4249
  .nhsuk-card__heading--feature {
4250
4250
  display: inline-block;
4251
4251
  position: relative;
@@ -4259,27 +4259,27 @@ b {
4259
4259
  color: #ffffff;
4260
4260
  background-color: #005eb8;
4261
4261
  }
4262
- .nhsuk-card--feature .nhsuk-card__heading,
4262
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
4263
4263
  .nhsuk-card__heading--feature {
4264
4264
  font-size: 1.375rem;
4265
4265
  line-height: 1.31818;
4266
4266
  }
4267
4267
  @media (min-width: 40.0625em) {
4268
- .nhsuk-card--feature .nhsuk-card__heading,
4268
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
4269
4269
  .nhsuk-card__heading--feature {
4270
4270
  font-size: 1.625rem;
4271
4271
  line-height: 1.23077;
4272
4272
  }
4273
4273
  }
4274
4274
  @media print {
4275
- .nhsuk-card--feature .nhsuk-card__heading,
4275
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
4276
4276
  .nhsuk-card__heading--feature {
4277
4277
  font-size: 17pt;
4278
4278
  line-height: 1.25;
4279
4279
  }
4280
4280
  }
4281
4281
  @media (max-width: 40.0525em) {
4282
- .nhsuk-card--feature .nhsuk-card__heading,
4282
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
4283
4283
  .nhsuk-card__heading--feature {
4284
4284
  top: -8px;
4285
4285
  margin-left: -25px;
@@ -4287,7 +4287,7 @@ b {
4287
4287
  }
4288
4288
  }
4289
4289
  @media print {
4290
- .nhsuk-card--feature .nhsuk-card__heading,
4290
+ .nhsuk-card--feature > .nhsuk-card__content > .nhsuk-card__heading,
4291
4291
  .nhsuk-card__heading--feature {
4292
4292
  color: #000000;
4293
4293
  top: 0;
@@ -4295,8 +4295,8 @@ b {
4295
4295
  }
4296
4296
  }
4297
4297
 
4298
- .nhsuk-card--feature .nhsuk-card__heading-container,
4299
- .nhsuk-card--feature .nhsuk-card__content,
4298
+ .nhsuk-card--feature > .nhsuk-card__heading-container,
4299
+ .nhsuk-card--feature > .nhsuk-card__content,
4300
4300
  .nhsuk-card__content--feature {
4301
4301
  padding: 0;
4302
4302
  }
@@ -4322,7 +4322,7 @@ b {
4322
4322
  }
4323
4323
  }
4324
4324
 
4325
- .nhsuk-card--care .nhsuk-card__heading-container,
4325
+ .nhsuk-card--care > .nhsuk-card__heading-container,
4326
4326
  .nhsuk-card--care__heading-container {
4327
4327
  position: relative;
4328
4328
  padding-top: 16px;
@@ -4330,36 +4330,36 @@ b {
4330
4330
  border-bottom: 1px solid transparent;
4331
4331
  }
4332
4332
 
4333
- .nhsuk-card--care .nhsuk-card__heading,
4333
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
4334
4334
  .nhsuk-card--care__heading {
4335
4335
  margin: 0;
4336
4336
  padding-top: 0;
4337
4337
  }
4338
- .nhsuk-card--care .nhsuk-card__heading,
4338
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
4339
4339
  .nhsuk-card--care__heading {
4340
4340
  font-weight: 600;
4341
4341
  }
4342
- .nhsuk-card--care .nhsuk-card__heading,
4342
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
4343
4343
  .nhsuk-card--care__heading {
4344
4344
  font-size: 1.375rem;
4345
4345
  line-height: 1.31818;
4346
4346
  }
4347
4347
  @media (min-width: 40.0625em) {
4348
- .nhsuk-card--care .nhsuk-card__heading,
4348
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
4349
4349
  .nhsuk-card--care__heading {
4350
4350
  font-size: 1.625rem;
4351
4351
  line-height: 1.23077;
4352
4352
  }
4353
4353
  }
4354
4354
  @media print {
4355
- .nhsuk-card--care .nhsuk-card__heading,
4355
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
4356
4356
  .nhsuk-card--care__heading {
4357
4357
  font-size: 17pt;
4358
4358
  line-height: 1.25;
4359
4359
  }
4360
4360
  }
4361
4361
  @media print {
4362
- .nhsuk-card--care .nhsuk-card__heading,
4362
+ .nhsuk-card--care > .nhsuk-card__heading-container > .nhsuk-card__heading,
4363
4363
  .nhsuk-card--care__heading {
4364
4364
  color: #000000;
4365
4365
  }
@@ -4506,18 +4506,18 @@ b {
4506
4506
  fill: #ffffff;
4507
4507
  }
4508
4508
 
4509
- .nhsuk-card--primary .nhsuk-card__content,
4509
+ .nhsuk-card--primary > .nhsuk-card__content,
4510
4510
  .nhsuk-card__content--primary {
4511
4511
  padding-right: 72px;
4512
4512
  }
4513
4513
  @media (min-width: 40.0625em) {
4514
- .nhsuk-card--primary .nhsuk-card__content,
4514
+ .nhsuk-card--primary > .nhsuk-card__content,
4515
4515
  .nhsuk-card__content--primary {
4516
4516
  padding-right: 80px;
4517
4517
  }
4518
4518
  }
4519
4519
  @media (min-width: 48.0625em) {
4520
- .nhsuk-card--primary .nhsuk-card__content,
4520
+ .nhsuk-card--primary > .nhsuk-card__content,
4521
4521
  .nhsuk-card__content--primary {
4522
4522
  height: 100%;
4523
4523
  }
@@ -4553,8 +4553,8 @@ b {
4553
4553
  background: transparent;
4554
4554
  }
4555
4555
 
4556
- .nhsuk-card--secondary .nhsuk-card__heading-container,
4557
- .nhsuk-card--secondary .nhsuk-card__content,
4556
+ .nhsuk-card--secondary > .nhsuk-card__heading-container,
4557
+ .nhsuk-card--secondary > .nhsuk-card__content,
4558
4558
  .nhsuk-card__content--secondary {
4559
4559
  padding-top: 0;
4560
4560
  padding-right: 0;
@@ -8513,6 +8513,19 @@ b {
8513
8513
  }
8514
8514
  }
8515
8515
 
8516
+ .nhsuk-card__content .nhsuk-summary-list {
8517
+ margin-bottom: 0;
8518
+ }
8519
+ .nhsuk-card__content .nhsuk-summary-list__row:last-of-type {
8520
+ margin-bottom: 0;
8521
+ border-bottom: none;
8522
+ }
8523
+ @media (max-width: 40.0525em) {
8524
+ .nhsuk-card__content .nhsuk-summary-list__row:last-of-type > :last-child {
8525
+ margin-bottom: 0;
8526
+ }
8527
+ }
8528
+
8516
8529
  .nhsuk-table-container {
8517
8530
  box-sizing: border-box;
8518
8531
  display: block;