Skip to content

Commit

Permalink
fix: replace font-weight usages with mixin (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje authored May 19, 2022
1 parent 3ad848f commit b38318f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/List/__stories__/ListShowcase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
}

&__group {
font-weight: 500;
@include text-accent;
color: var(--yc-color-text-secondary);
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/Popover/Popover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ $block: '.#{$ns}popover';
}

#{$class}__tooltip-content a:not(.yc-button) {
font-weight: bold;
@include text-accent;
color: var(--yc-color-text-light-primary);

&:hover {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ $block: '.#{$ns}select';
}

&__label {
@include text-accent;
margin-right: 2px;
font-weight: 500;
white-space: nowrap;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ $xl-hor-padding: '12px';

&__group-label-content {
@include overflow-ellipsis();
@include text-accent;

width: 100%;
font-weight: 500;
}

&__option {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/Table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
}

&__th-content {
font-weight: 500;
@include text-accent;
display: inline-block;
&::first-letter {
text-transform: uppercase;
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextInput/TextInput.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $block: '.#{$ns}text-input';
margin: 0;
padding: 0;
width: 100%;
font-weight: 400;
font-weight: normal;
font-family: var(--yc-text-body-font-family);
color: var(--yc-color-text-primary);
background-color: transparent;
Expand Down
12 changes: 6 additions & 6 deletions src/components/Toaster/Toast/Toast.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import '../../variables';
@import '../../../../styles/mixins';

$block: '.#{$ns}toast';

Expand Down Expand Up @@ -111,17 +112,16 @@ $block: '.#{$ns}toast';
}
}

&__title {
@include text-subheader-2;
padding-right: 28px;
}

&__title,
&__action {
line-height: 24px;
}

&__title {
padding-right: 28px;
font-size: 15px;
font-weight: 500;
}

#{$iconClass} {
margin-right: 6px;
}
Expand Down
3 changes: 1 addition & 2 deletions src/demo/Typography/Typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
}

&__header {
@include text-body-1();
@include text-subheader-1();
margin-bottom: 20px;
font-weight: bold;
text-transform: uppercase;
color: var(--yc-color-text-primary);
}
Expand Down

0 comments on commit b38318f

Please sign in to comment.