Skip to content

Commit

Permalink
KYAN-289 add new sizes to 'size' dropdown (#509)
Browse files Browse the repository at this point in the history
* KYAN-289 add 'xs' and '2xs' sizes to 'size' dropdown

* KYAN-289 adjust Content font for XS and 2XS sizes
  • Loading branch information
KorzunYuri authored Oct 3, 2024
1 parent 7e0fae2 commit ef1be08
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
"label": "Large",
"value": "is-large"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,21 @@
},
"size": {
"sling:resourceType": "wcm/dialogs/components/include",
"path": "kyanite/common/components/common/size"
"include": {
"sling:resourceSuperType": "/libs/kyanite/common/components/common/size",
"extraSmall-2x": {
"sling:resourceType": "wcm/dialogs/components/select/selectitem",
"label": "2 Extra small",
"value": "is-2xsmall",
"sling:orderBefore": "small"
},
"extraSmall": {
"sling:resourceType": "wcm/dialogs/components/select/selectitem",
"label": "Extra small",
"value": "is-xsmall",
"sling:orderBefore": "small"
}
}
},
"textweight": {
"sling:resourceType": "wcm/dialogs/components/include",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
// 16px as base
$map_t-font-sizes: (
'base': 1rem,
'10': 0.625rem,
'12': 0.75rem,
'14': 0.875rem,
'16': 1rem,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

$map_t-line-heights: (
'100': 100%,
'140': 140%,
'150': 150%,
'155': 155%,
);
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
color: unset;
}

&-2xs {
line-height: var(--line-height-140);
font-size: var(--font-size-10);
}

&-xs {
line-height: var(--line-height-150);
font-size: var(--font-size-12);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
.content {
@extend .a-content;

&.is-2xsmall {
@extend .a-content-2xs;
}

&.is-xsmall {
@extend .a-content-xs;
}
Expand Down

0 comments on commit ef1be08

Please sign in to comment.