Skip to content

Commit

Permalink
[Next Theme] Reduce the height of OuiBreadcrumbs
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <miki@amazon.com>
  • Loading branch information
AMoo-Miki committed Jan 31, 2024
1 parent 2fb45d6 commit 9b1206d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/breadcrumbs/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

.ouiBreadcrumbs {
@include ouiFontSizeS;
@include ouiFontSizeSCompressed;
margin-bottom: -$ouiSizeXS; /* 1 */
display: flex;
align-items: center;
Expand Down
5 changes: 5 additions & 0 deletions src/global_styling/mixins/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
line-height: $ouiLineHeight;
}

@mixin ouiFontSizeSCompressed {
@include fontSize($ouiFontSizeS);
line-height: $ouiLineHeight;
}

@mixin ouiFontSize {
@include fontSize($ouiFontSize);
line-height: $ouiLineHeight;
Expand Down
5 changes: 5 additions & 0 deletions src/themes/oui-next/global_styling/mixins/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@
line-height: $ouiLineHeight;
}

@mixin ouiFontSizeSCompressed {
@include fontSize($ouiFontSizeS);
line-height: 1.333;
}

@mixin ouiFontSize {
@include fontSize($ouiFontSize);
line-height: $ouiLineHeight;
Expand Down

0 comments on commit 9b1206d

Please sign in to comment.