Skip to content

Commit

Permalink
Merge branch 'main' into enhancement/159/add-menu-button-in-new-heade…
Browse files Browse the repository at this point in the history
…r-variant
  • Loading branch information
SriHV authored Jan 29, 2025
2 parents 70e9b03 + 9523d9e commit 4d4c072
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ONSdigital/design-team-devs
5 changes: 3 additions & 2 deletions src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ $button-shadow-size: 3px;

&--search {
.ons-icon {
@include mq(s, l) {
margin-right: 0.5rem;
margin: 0.125rem 0.5rem 0.125rem 0;
@include mq(xs, s) {
margin-right: 0;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
html {
@include font-smoothing;

font-size: $base;
font-size: calc((100% / 16) * strip-unit($base));
}

body {
Expand Down
2 changes: 1 addition & 1 deletion src/scss/helpers/_mq.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
/// @return {Number} - Unitless number
@function strip-unit($number) {
@if meta.type-of($number) == 'number' and not math.is-unitless($number) {
@return $number / ($number * 0 + 1);
@return math.div($number, ($number * 0 + 1));
}

@return $number;
Expand Down

0 comments on commit 4d4c072

Please sign in to comment.