Skip to content

Commit 494a175

Browse files
micahgodboltHotell
authored andcommitted
remove mwf styles (microsoft#26592)
* remove mwf styles * change file
1 parent 35a7015 commit 494a175

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

apps/public-docsite/src/root.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ import { androidLogo, appleLogo, webLogo, macLogo, windowsLogo, crossPlatformLog
99

1010
// TODO: handle redirects
1111

12+
// Remove MWF stylesheet as it is unused by the site and causes conflicts with our styles
13+
for (const tag of Array.from(document.getElementsByTagName('link'))) {
14+
if (tag.href.includes('mwf-main')) {
15+
tag.remove();
16+
}
17+
}
18+
1219
initializeFileTypeIcons(cdnUrl + '/assets/item-types/');
1320

1421
setRTL(false);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: remove mwf styles causing conflicts with react components",
4+
"packageName": "@fluentui/public-docsite-setup",
5+
"email": "mgodbolt@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

packages/public-docsite-setup/index.html

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
99
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1.0" user-scalable="no" />
11+
<!-- replicate the MWF styles being added to the live header -->
12+
<link
13+
href="https://mwf-service.akamaized.net/mwf/css/bundle/1.58.2/west-european/default/mwf-main.min.css"
14+
rel="stylesheet"
15+
type="text/css"
16+
/>
1117
<title>Fluent UI</title>
1218
<link
1319
href="https://devofficecdn.azureedge.net/themes/DevOffice/Content/favicon.ico"

0 commit comments

Comments
 (0)