Skip to content

Commit 72f5ed2

Browse files
committedDec 12, 2022
NEXT-24341 - Fix e2e inter font errors
1 parent b40cd70 commit 72f5ed2

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed
 

‎.danger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ function checkMigrationForBundle(string $bundle, Context $context): void
313313
continue;
314314
}
315315

316-
if ($file->status !== File::STATUS_REMOVED && preg_match('/^([-\.\w\/]+)$/', $file->name) === 0) {
316+
if ($file->status !== File::STATUS_REMOVED && preg_match('/^([-+\.\w\/]+)$/', $file->name) === 0) {
317317
$invalidFiles[] = $file->name;
318318
}
319319
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Fix inter-ui apache incompatibility
3+
issue: NEXT-24341
4+
author: Sebastian Seggewiss
5+
author_email: s.seggewiss@shopware.com
6+
author_github: @seggewiss
7+
---
8+
# Administration
9+
* Changed `inter-ui` web css suffix from `var` to `variable`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/node_modules/inter-ui/Inter (web)/Inter-italic.var.woff2 b/node_modules/inter-ui/Inter (web)/Inter-italic.variable.woff2
2+
similarity index 100%
3+
rename from node_modules/inter-ui/Inter (web)/Inter-italic.var.woff2
4+
rename to node_modules/inter-ui/Inter (web)/Inter-italic.variable.woff2
5+
diff --git a/node_modules/inter-ui/Inter (web)/Inter-roman.var.woff2 b/node_modules/inter-ui/Inter (web)/Inter-roman.variable.woff2
6+
similarity index 100%
7+
rename from node_modules/inter-ui/Inter (web)/Inter-roman.var.woff2
8+
rename to node_modules/inter-ui/Inter (web)/Inter-roman.variable.woff2
9+
diff --git a/node_modules/inter-ui/Inter (web)/Inter.var.woff2 b/node_modules/inter-ui/Inter (web)/Inter.variable.woff2
10+
similarity index 100%
11+
rename from node_modules/inter-ui/Inter (web)/Inter.var.woff2
12+
rename to node_modules/inter-ui/Inter (web)/Inter.variable.woff2

‎src/Administration/Resources/app/administration/src/app/assets/scss/fonts/inter.font.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
// Variable font
88
@use "~inter-ui/variable" as inter-ui-variable with (
99
$inter-font-display: swap,
10-
$inter-font-path: '~inter-ui/Inter (web)'
10+
$inter-font-path: '~inter-ui/Inter (web)',
11+
$inter-font-variable-suffix: '.variable'
1112
);
1213

1314
@include inter-ui.weight-400;

‎src/Administration/Resources/app/administration/src/scripts/create-spec-file/index.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ rl.question(chalk.blueBright('Enter the component name/path you want to test: ')
5050
const fileName = orgFileName.substr(orgFileName.indexOf('app/administration/src') + 19, orgFileName.length);
5151
let specFileName = '';
5252

53-
if (fileName.endsWith('index.js') || fileName.endsWith('index.ts')) {
53+
if (fileName.endsWith('index.js') || fileName.endsWith('index.ts')) {
5454
const regex = /^.*\/(.*)\/index\.(js|ts)/;
5555
const [_, lastFolder, fileExtension] = fileName.match(regex);
5656

0 commit comments

Comments
 (0)
Please sign in to comment.