Skip to content

Commit 4b5c041

Browse files
Prefer NHS default $at param
1 parent 534aeaf commit 4b5c041

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/tools/_grid.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
/// Grid widths are defined in the `$nhsuk-grid-widths` map.
6565
///
6666
/// By default the column width changes from 100% to specified width at the
67-
/// 'tablet' breakpoint, but other breakpoints can be specified using the `$at`
67+
/// 'desktop' breakpoint, but other breakpoints can be specified using the `$at`
6868
/// parameter.
6969
///
7070
/// @param {String} $width [full] name of a grid width from $nhsuk-grid-widths
7171
/// @param {String} $float [left] left | right
72-
/// @param {String} $at [tablet] - mobile | tablet | desktop | any custom breakpoint
72+
/// @param {String} $at [desktop] - mobile | tablet | desktop | any custom breakpoint
7373
/// @param {String} $class [nhsuk-grid-column] CSS class name (deprecated)
7474
///
7575
/// @example scss - Default
@@ -78,8 +78,8 @@
7878
/// }
7979
///
8080
/// @example scss - Customising the breakpoint where width percentage is applied
81-
/// .nhsuk-grid-column-one-half-at-desktop {
82-
/// @include govuk-grid-column(one-half, $at: desktop);
81+
/// .nhsuk-grid-column-one-half-at-tablet {
82+
/// @include govuk-grid-column(one-half, $at: tablet);
8383
/// }
8484
///
8585
/// @example scss - Customising the float direction
@@ -92,7 +92,7 @@
9292
///
9393
/// @access public
9494

95-
@mixin govuk-grid-column($width: full, $float: left, $at: tablet, $class: "nhsuk-grid-column") {
95+
@mixin govuk-grid-column($width: full, $float: left, $at: desktop, $class: "nhsuk-grid-column") {
9696
@if $class {
9797
.#{$class}-#{$width} {
9898
@include govuk-grid-column($width, $float, $at, $class: false);

0 commit comments

Comments
 (0)