Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/public-docsite/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ registerIcons({
},
});

const skipToMain = document.getElementById('uhfSkipToMain') as HTMLAnchorElement;
const skipToMain = document.querySelector('[href="#mainContent"]') as HTMLAnchorElement;
if (skipToMain) {
// This link points to #mainContent by default, which would be interpreted as a route in our app.
// Handle focusing the main content manually instead.
Expand Down
6 changes: 2 additions & 4 deletions apps/public-docsite/src/utilities/createSite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,9 @@ if (window.__siteConfig?.baseCDNUrl) {

initializeIcons();

const corePackageVersion: string = require<any>('office-ui-fabric-core/package.json').version;
// blog storage is now immutable, so new versions of fabric-core will be at a new url based on the build number
addCSSToHeader(
'https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/' +
corePackageVersion +
'/css/fabric.min.css',
'https://res-1.cdn.office.net/files/fabric-cdn-prod_20220825.001/office-ui-fabric-core/11.0.1/css/fabric.min.css',
);

let rootElement: HTMLElement;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: update fabric core URL and change selector for back to top button",
"packageName": "@fluentui/public-docsite-setup",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/public-docsite-setup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<body>
<!-- Copied from UHF site -->
<a id="uhfSkipToMain" class="m-skip-to-main" href="#mainContent" tabindex="0">Skip to main content</a>
<a class="m-skip-to-main" href="#mainContent" tabindex="0">Skip to main content</a>
<div id="main">
<div class="loading">
<img
Expand Down