delete headings transformations

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2022-05-13 15:49:55 +02:00
committed by Camila Belo
parent 0b66483ca0
commit b2dd93f207
2 changed files with 14 additions and 2 deletions
+12
View File
@@ -1,3 +1,15 @@
# Documentation
The Backstage documentation is available at https://backstage.io/docs
# H1
## H2
### H3
#### H4
##### H5
###### H6
@@ -38,8 +38,8 @@ ${headings.reduce<string>((style, heading) => {
const calculate = (value: typeof fontSize) => {
let factor: number | string = 1;
if (typeof value === 'number') {
// 60% of the size defined because it is too big
factor = (value / 16) * 0.6;
// convert px to rem
factor = value / 16;
}
if (typeof value === 'string') {
factor = value.replace('rem', '');