-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add support for foundation components to SSR DOM shim (#6031)
* add files and foundation dev dependency * fixing issue where getter and static property "attributes" was causing static to clobber the getter * removing style utilities * adding uninstall dom shim test util * adding foundation DOM shim * Revert "removing style utilities" This reverts commit bfa5816. * deprecate styling utilities and hard-code focus-visible * fixing errors in foundation element rendering * cleans up foundation-dom-shim spec file * adding un-install dom shim * adding exports field for foundation shim and install-foundation-shim * Change files * remove foundation DOM shim and integrate it into minimal DOM shim * fixing deprecation notice * remove uninstall-dom-shim because it is no longer needed * removing foundation DOM shim Co-authored-by: nicholasrice <[email protected]>
- Loading branch information
1 parent
f9daa8a
commit b2d111f
Showing
14 changed files
with
143 additions
and
29 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@microsoft-fast-foundation-a3b61195-c74e-48ec-b391-f616432516b0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Deprecates style utilities and hard-codes focus-visible value", | ||
"packageName": "@microsoft/fast-foundation", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
change/@microsoft-fast-ssr-d198a471-fdb9-442e-affa-97390bd73d95.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Adds DOM shim support for APIs in @microsoft/fast-foundation", | ||
"packageName": "@microsoft/fast-ssr", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/web-components/fast-foundation/src/utilities/style/disabled.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/** | ||
* The CSS value for disabled cursors. | ||
* @public | ||
* @deprecated - fast-foundation is removing styling utilities | ||
*/ | ||
export const disabledCursor = "not-allowed"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
packages/web-components/fast-foundation/src/utilities/style/focus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
import { canUseFocusVisible } from "@microsoft/fast-web-utilities"; | ||
|
||
/** | ||
* The string representing the focus selector to be used. Value | ||
* will be "focus-visible" when https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo | ||
* is supported and "focus" when it is not. | ||
* | ||
* This will always evaluate to 'focus-visible' due to modern browser support. | ||
* @public | ||
* @deprecated - fast-foundation is removing styling utilities | ||
*/ | ||
export const focusVisible = canUseFocusVisible() ? "focus-visible" : "focus"; | ||
export const focusVisible = "focus-visible"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { installWindowOnGlobal } from "./dom-shim.js"; | ||
import { createWindow, installWindowOnGlobal } from "./dom-shim.js"; | ||
|
||
installWindowOnGlobal(); | ||
installWindowOnGlobal(createWindow()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.