Skip to content

Commit 5ac1770

Browse files
Fix background color styling when scrolling beyond 100% (#5993)
* Fix background color styling when scrolling beyond 100% * change file * Update packages/react-composites CallComposite browser test snapshots * Update packages/react-composites CallComposite browser test snapshots --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 28108a0 commit 5ac1770

34 files changed

Lines changed: 25 additions & 10 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "",
5+
"comment": "Fix background color of the survey on high percentage zooms and smaller screens",
6+
"packageName": "@azure/communication-react",
7+
"email": "2684369+JamesBurnside@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/react-composites/src/composites/common/styles/Survey.styles.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,13 @@ export const surveyContainerStyle = (isMobile: boolean): string =>
2222
mergeStyles(
2323
isMobile
2424
? {
25-
width: '20rem',
26-
position: 'absolute',
27-
top: '10%',
28-
left: '50%',
29-
transform: 'translateX(-50%)'
25+
maxWidth: '20rem',
26+
margin: '0 auto',
27+
justifyContent: 'center'
3028
}
3129
: {
32-
width: '24rem',
33-
position: 'absolute',
34-
top: '20%',
35-
left: '50%',
36-
transform: 'translateX(-50%)'
30+
maxWidth: '24rem',
31+
margin: '0 auto',
32+
justifyContent: 'center'
3733
}
3834
);
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)