Skip to content

Commit 82ddb4f

Browse files
committed
fix: Fix USM component rendering
1 parent 00ad3d8 commit 82ddb4f

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export const CLIENT_NAME_CONTENT_SIDEBAR: 'ContentSidebar' = 'ContentSidebar';
242242
export const CLIENT_NAME_CONTENT_UPLOADER: 'ContentUploader' = 'ContentUploader';
243243
export const CLIENT_NAME_FILE_PICKER: 'FilePicker' = 'FilePicker';
244244
export const CLIENT_NAME_FOLDER_PICKER: 'FolderPicker' = 'FolderPicker';
245-
export const CLIENT_VERSION = __VERSION__;
245+
export const CLIENT_VERSION = 'custom-version';
246246

247247
/* ---------------------- Statuses -------------------------- */
248248
export const STATUS_PENDING: 'pending' = 'pending';

src/features/unified-share-modal/UnifiedShareForm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ class UnifiedShareForm extends React.Component<USFProps, State> {
488488
showCloseButton: true,
489489
text: ftuxTooltipText,
490490
theme: 'callout',
491+
targetWrapperClassName: 'wrapper-block',
491492
};
492493
const showUpsellInlineNotice = !!upsellInlineNotice;
493494

src/features/unified-share-modal/UnifiedShareModal.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
}
4848
}
4949

50-
.tooltip-target .bdl-Tooltip-target {
50+
.bdl-Tooltip-target.wrapper-block {
5151
display: block;
5252
}
5353

@@ -94,6 +94,10 @@
9494
width: 100%;
9595
}
9696
}
97+
98+
.bdl-Tooltip-target.bdl-Tooltip-target {
99+
display: block;
100+
}
97101
}
98102

99103
.invitee-menu-wrap {
@@ -188,6 +192,10 @@
188192
justify-content: space-between;
189193
margin-top: 10px;
190194

195+
.bdl-Tooltip-target {
196+
flex: 0 1 80%;
197+
}
198+
191199
.toggle-container {
192200
flex: 0 1 80%;
193201
margin-bottom: 0;

src/features/unified-share-modal/__tests__/__snapshots__/UnifiedShareForm.test.js.snap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exports[`features/unified-share-modal/UnifiedShareForm closeEmailSharedLinkForm(
1414
isDisabled={false}
1515
position="middle-left"
1616
showCloseButton={true}
17+
targetWrapperClassName="wrapper-block"
1718
text={
1819
<div>
1920
<h4
@@ -214,6 +215,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should not rende
214215
isShown={false}
215216
position="middle-left"
216217
showCloseButton={true}
218+
targetWrapperClassName="wrapper-block"
217219
text={
218220
<div>
219221
<h4
@@ -378,6 +380,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should not rende
378380
isDisabled={false}
379381
position="middle-left"
380382
showCloseButton={true}
383+
targetWrapperClassName="wrapper-block"
381384
text={
382385
<div>
383386
<h4
@@ -542,6 +545,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
542545
isDisabled={false}
543546
position="middle-left"
544547
showCloseButton={true}
548+
targetWrapperClassName="wrapper-block"
545549
text={
546550
<div>
547551
<h4
@@ -711,6 +715,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
711715
isShown={true}
712716
position="middle-left"
713717
showCloseButton={true}
718+
targetWrapperClassName="wrapper-block"
714719
text={
715720
<div>
716721
<h4
@@ -876,6 +881,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
876881
isDisabled={false}
877882
position="middle-left"
878883
showCloseButton={true}
884+
targetWrapperClassName="wrapper-block"
879885
text={
880886
<div>
881887
<h4
@@ -1042,6 +1048,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
10421048
isDisabled={false}
10431049
position="middle-left"
10441050
showCloseButton={true}
1051+
targetWrapperClassName="wrapper-block"
10451052
text={
10461053
<div>
10471054
<h4
@@ -1177,6 +1184,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
11771184
isDisabled={false}
11781185
position="middle-left"
11791186
showCloseButton={true}
1187+
targetWrapperClassName="wrapper-block"
11801188
text={
11811189
<div>
11821190
<h4
@@ -1343,6 +1351,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
13431351
isDisabled={false}
13441352
position="middle-left"
13451353
showCloseButton={true}
1354+
targetWrapperClassName="wrapper-block"
13461355
text={
13471356
<div>
13481357
<h4
@@ -1509,6 +1518,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
15091518
isDisabled={false}
15101519
position="middle-left"
15111520
showCloseButton={true}
1521+
targetWrapperClassName="wrapper-block"
15121522
text={
15131523
<div>
15141524
<h4
@@ -1676,6 +1686,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
16761686
isDisabled={false}
16771687
position="middle-left"
16781688
showCloseButton={true}
1689+
targetWrapperClassName="wrapper-block"
16791690
text={
16801691
<div>
16811692
<h4
@@ -1853,6 +1864,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
18531864
isDisabled={false}
18541865
position="middle-left"
18551866
showCloseButton={true}
1867+
targetWrapperClassName="wrapper-block"
18561868
text={
18571869
<div>
18581870
<h4
@@ -2018,6 +2030,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
20182030
isDisabled={false}
20192031
position="middle-left"
20202032
showCloseButton={true}
2033+
targetWrapperClassName="wrapper-block"
20212034
text={
20222035
<div>
20232036
<h4
@@ -2187,6 +2200,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
21872200
isDisabled={false}
21882201
position="middle-left"
21892202
showCloseButton={true}
2203+
targetWrapperClassName="wrapper-block"
21902204
text={
21912205
<div>
21922206
<h4
@@ -2353,6 +2367,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
23532367
isDisabled={false}
23542368
position="middle-left"
23552369
showCloseButton={true}
2370+
targetWrapperClassName="wrapper-block"
23562371
text={
23572372
<div>
23582373
<h4
@@ -2518,6 +2533,7 @@ exports[`features/unified-share-modal/UnifiedShareForm render() should render a
25182533
isDisabled={false}
25192534
position="middle-left"
25202535
showCloseButton={true}
2536+
targetWrapperClassName="wrapper-block"
25212537
text={
25222538
<div>
25232539
<h4

0 commit comments

Comments
 (0)