-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move styles declared in useDisableBodyScroll() to a separate file (
- Loading branch information
1 parent
fded6b4
commit 6533854
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-dialog-acec3e3b-75d4-4068-824a-24264b219715.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": "fix: move styles declared in useDisableBodyScroll() to a separate file", | ||
"packageName": "@fluentui/react-dialog", | ||
"email": "olfedias@microsoft.com", | ||
"dependentChangeType": "patch" | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/react-components/react-dialog/src/utils/useDisableBodyScroll.styles.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { makeResetStyles } from '@griffel/react'; | ||
|
||
// this style must be applied to the html element to disable scrolling | ||
export const useHTMLNoScrollStyles = makeResetStyles({ | ||
overflowY: ['hidden', 'clip'], | ||
scrollbarGutter: 'stable', | ||
}); |
7 changes: 1 addition & 6 deletions
7
packages/react-components/react-dialog/src/utils/useDisableBodyScroll.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