Skip to content

Commit

Permalink
fix(pie-docs): DSW-1604 fix some tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
raoufswe committed Jan 19, 2024
1 parent 0c3866d commit 3cf010a
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions apps/pie-docs/src/assets/styles/components/_anchorIcon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ h4:has(.c-anchorIcon) {
}

$headingSizes: (
'h2' f.$font-heading-xl-line-height--wide f.$font-heading-xl-line-height--narrow,
'h3' f.$font-heading-m-line-height--wide f.$font-heading-m-line-height--narrow,
'h4' f.$font-heading-s-line-height--wide f.$font-heading-s-line-height--narrow
'h2' --dt-font-heading-xl-line-height--wide --dt-font-heading-xl-line-height--narrow,
'h3' --dt-font-heading-m-line-height--wide --dt-font-heading-m-line-height--wide,
'h4' --dt-font-heading-s-line-height--wide --dt-font-heading-s-line-height--wide
);

@each $headingSize, $wideToken, $narrowToken in $headingSizes {
#{$headingSize}:has(.c-anchorIcon) {
.c-anchorIcon {
bottom: calc((($narrowToken * 1px) - $anchor-size) / 2);
bottom: calc((#{p.font-size($narrowToken)} - $anchor-size) / 2);

@include f.media('>=wide') {
bottom: calc((($wideToken * 1px) - $anchor-size) / 2);
bottom: calc((#{p.font-size($wideToken)} - $anchor-size) / 2);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $icon-preview-size: 64px;

p {
margin-block-start: 0;
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
}

.c-categorisedIconList-icon svg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
padding-block: 2px;
padding-inline: var(--dt-spacing-a);
border-radius: f.$radius-rounded-b;
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ $contentImage-height-l--mobile: 400px;

.c-contentImage-caption {
margin-block-start: var(--dt-spacing-d);
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
max-width: v.$typography-content-max-width;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}

.c-contentPage-header-description {
@include p.font-size(--dt-font-heading-l-size--wide);
@include p.font-size(--dt-font-body-l-size--wide);
margin-block-start: var(--dt-spacing-e);
max-width: 50ch;

Expand Down
2 changes: 1 addition & 1 deletion apps/pie-docs/src/assets/styles/components/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
}

h3 {
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
text-transform: capitalize;
margin-block-end: var(--dt-spacing-a);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}

.c-heroBanner-description {
@include p.font-size(--dt-font-heading-l-size--wide);
@include p.font-size(--dt-font-body-l-size--wide);
margin-block-start: var(--dt-spacing-d);
max-width: 50ch;

Expand Down
8 changes: 4 additions & 4 deletions apps/pie-docs/src/assets/styles/components/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.c-list-item {
counter-increment: item;
margin-block-end: var(--dt-spacing-b);
@include p.font-size(--dt-font-heading-l-size--wide);
@include p.font-size(--dt-font-body-l-size--wide);
display: flex;

@include f.media('>=wide') {
Expand All @@ -24,7 +24,7 @@

&:before {
content: counter(item);
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
font-weight: var(--dt-font-weight-bold);
margin-inline-end: var(--dt-spacing-c);
width: 25px;
Expand All @@ -46,7 +46,7 @@
flex-wrap: wrap;

& .c-list-item {
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
background-color: var(--dt-color-container-strong);
padding-block: 2px;
padding-inline: var(--dt-spacing-a);
Expand All @@ -58,7 +58,7 @@
margin: 0;

.c-list-item {
@include p.font-size(--dt-font-heading-l-size--wide);
@include p.font-size(--dt-font-body-l-size--wide);
display: flex;
align-items: flex-start;
justify-content: flex-start;
Expand Down
2 changes: 1 addition & 1 deletion apps/pie-docs/src/assets/styles/components/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $nav-category-icon-width: var(--dt-spacing-e); // this needs to be kept in sync
$nav-item-inline-start-margin: calc($nav-category-gap + $nav-category-icon-width);

.c-nav {
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
background: var(--dt-color-container-default);
padding-top: var(--dt-spacing-d);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.c-simpleTable--monospace {
font-family: PTMono, Consolas, monospace;
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
}

.c-simpleTable--swatch {
Expand Down
2 changes: 1 addition & 1 deletion apps/pie-docs/src/assets/styles/components/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $toggle-item-elevation--checked: f.$elevation-02;
.c-toggle-label {
padding-block: $toggle-item-padding-y;
padding-inline: $toggle-item-padding-x;
@include p.font-size(--dt-font-heading-l-size--wide);
@include p.font-size(--dt-font-body-l-size--wide);
position: relative; // context for :before

align-items: center;
Expand Down
6 changes: 3 additions & 3 deletions apps/pie-docs/src/assets/styles/components/_tokensTable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,12 @@ $tokensTable-item-vertical-padding: var(--dt-spacing-e);
}

.c-tokensTable-tokenDescription {
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
}

.c-tokensTable-heading {
font-weight: var(--dt-font-weight-bold);
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
color: var(--dt-color-content-subdued);
}

Expand Down Expand Up @@ -285,7 +285,7 @@ $tokensTable-item-vertical-padding: var(--dt-spacing-e);
border-radius: f.$radius-03;
padding-block: calc(var(--dt-spacing-a) / 2);
padding-inline: var(--dt-spacing-a);
@include p.font-size(--dt-font-heading-s-size--wide);
@include p.font-size(--dt-font-body-s-size--wide);
}

.c-tokensTable-token--light {
Expand Down

0 comments on commit 3cf010a

Please sign in to comment.