Skip to content

Commit d46ff2c

Browse files
committed
feat: add a user-defined.css file (empty) that we load up front in the backoffice on the server
1 parent 73107b8 commit d46ff2c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en-us" dir="ltr">
33
<head>
44
<base href="/" />
@@ -7,6 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>Umbraco</title>
99
<script src="node_modules/msw/lib/iife/index.js"></script>
10+
<link rel="stylesheet" href="src/css/user-defined.css" />
1011
<link rel="stylesheet" href="node_modules/@umbraco-ui/uui-css/dist/uui-css.css" />
1112
<link rel="stylesheet" href="src/css/umb-css.css" />
1213
<script type="module" src="index.ts"></script>

src/css/user-defined.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* This file can be overridden by placing a file with the same name in the /wwwroot/umbraco/backoffice/css folder of the website */

web-test-runner.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default {
5050
window.__UMBRACO_TEST_RUN_A11Y_TEST = ${(!devMode).toString()};
5151
</script>
5252
<script src="/node_modules/msw/lib/iife/index.js"></script>
53+
<link rel="stylesheet" href="src/css/user-defined.css">
5354
<link rel="stylesheet" href="node_modules/@umbraco-ui/uui-css/dist/uui-css.css">
5455
<link rel="stylesheet" href="src/css/umb-css.css">
5556
</head>

0 commit comments

Comments
 (0)