Skip to content

Commit

Permalink
Prefer NHS default $at param
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Feb 21, 2025
1 parent 534aeaf commit 4b5c041
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/tools/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
/// Grid widths are defined in the `$nhsuk-grid-widths` map.
///
/// By default the column width changes from 100% to specified width at the
/// 'tablet' breakpoint, but other breakpoints can be specified using the `$at`
/// 'desktop' breakpoint, but other breakpoints can be specified using the `$at`
/// parameter.
///
/// @param {String} $width [full] name of a grid width from $nhsuk-grid-widths
/// @param {String} $float [left] left | right
/// @param {String} $at [tablet] - mobile | tablet | desktop | any custom breakpoint
/// @param {String} $at [desktop] - mobile | tablet | desktop | any custom breakpoint
/// @param {String} $class [nhsuk-grid-column] CSS class name (deprecated)
///
/// @example scss - Default
Expand All @@ -78,8 +78,8 @@
/// }
///
/// @example scss - Customising the breakpoint where width percentage is applied
/// .nhsuk-grid-column-one-half-at-desktop {
/// @include govuk-grid-column(one-half, $at: desktop);
/// .nhsuk-grid-column-one-half-at-tablet {
/// @include govuk-grid-column(one-half, $at: tablet);
/// }
///
/// @example scss - Customising the float direction
Expand All @@ -92,7 +92,7 @@
///
/// @access public

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

0 comments on commit 4b5c041

Please sign in to comment.