Skip to content

Commit 61651e5

Browse files
committed
address PR feedback
1 parent 7f526e8 commit 61651e5

10 files changed

Lines changed: 19 additions & 17 deletions

.changeset/funny-news-smell.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
"@fluentui-react-native/contextual-menu": patch
3-
"@fluentui-react-native/vibrancy-view": patch
4-
"@fluentui-react-native/focus-trap-zone": patch
5-
"@fluentui-react-native/menu-button": patch
6-
"@fluentui-react-native/focus-zone": patch
7-
"@fluentui-react-native/tooltip": patch
8-
"@fluentui-react-native/experimental-avatar": patch
9-
"@fluentui-react-native/callout": patch
10-
"@fluentui-react-native/button": patch
2+
'@fluentui-react-native/contextual-menu': patch
3+
'@fluentui-react-native/vibrancy-view': patch
4+
'@fluentui-react-native/focus-trap-zone': patch
5+
'@fluentui-react-native/menu-button': patch
6+
'@fluentui-react-native/focus-zone': patch
7+
'@fluentui-react-native/tooltip': patch
8+
'@fluentui-react-native/experimental-avatar': patch
9+
'@fluentui-react-native/callout': patch
10+
'@fluentui-react-native/button': patch
1111
---
1212

1313
Fix codegen definitions for native components in repo

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"prettier.trailingComma": "all",
1414

1515
"eslint.enable": true,
16-
"eslint.workingDirectories": [
17-
{ "pattern": "./packages/framework/eslint-config-rules" }
18-
], // use the common eslint config file
16+
"eslint.workingDirectories": [{ "pattern": "./packages/framework/eslint-config-rules" }], // use the common eslint config file
1917

2018
"explorer.fileNesting.enabled": true,
2119
"explorer.fileNesting.patterns": {

packages/components/Callout/macos/FRNCalloutManager.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ + (NSRect)screenRect:(id)json
2929
@"rightCenter": @(NSRectEdgeMaxX),
3030
@"rightBottomEdge": @(NSRectEdgeMaxX),
3131
@"bottomLeftEdge": @(NSRectEdgeMinY),
32+
@"bottonLeftEdge": @(NSRectEdgeMinY), // Add both the correct and incorrect spellings during the transition period
3233
@"bottomAutoEdge": @(NSRectEdgeMinY),
3334
@"bottomCenter": @(NSRectEdgeMinY),
3435
@"bottomRightEdge": @(NSRectEdgeMinY),

packages/components/Callout/src/Callout.settings.macos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const settings: IComposeSettings<ICalloutType> = [
1010
borderColor: 'transparent',
1111
borderWidth: 0,
1212
borderRadius: 5,
13-
directionalHint: 'bottomLeftEdge',
13+
directionalHint: 'bottonLeftEdge',
1414
},
1515
root: {
1616
style: {

packages/components/Callout/src/Callout.settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const settings: IComposeSettings<ICalloutType> = [
1010
beakWidth: 20,
1111
borderColor: 'bodyFrameBackground',
1212
borderWidth: 1,
13-
directionalHint: 'bottomLeftEdge',
13+
directionalHint: 'bottonLeftEdge',
1414
gapSpace: 0,
1515
minPadding: 0,
1616
},

packages/components/Callout/src/Callout.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export type DirectionalHint =
2424
| 'rightCenter'
2525
| 'rightBottomEdge'
2626
| 'bottomLeftEdge'
27+
| 'bottonLeftEdge' // Typo in the original code, should be 'bottomLeftEdge'
2728
| 'bottomAutoEdge'
2829
| 'bottomCenter'
2930
| 'bottomRightEdge';

packages/components/Callout/src/CalloutNativeComponent.macos.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface NativeProps extends ViewProps {
4646
| 'rightCenter'
4747
| 'rightBottomEdge'
4848
| 'bottomLeftEdge'
49+
| 'bottonLeftEdge' // Typo in the original code, should be 'bottomLeftEdge'
4950
| 'bottomAutoEdge'
5051
| 'bottomCenter'
5152
| 'bottomRightEdge',

packages/components/Callout/src/CalloutNativeComponent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ export interface NativeProps extends ViewProps {
4646
| 'rightCenter'
4747
| 'rightBottomEdge'
4848
| 'bottomLeftEdge'
49+
| 'bottonLeftEdge' // Typo in the original code, should be 'bottomLeftEdge'
4950
| 'bottomAutoEdge'
5051
| 'bottomCenter'
5152
| 'bottomRightEdge',
52-
'bottomLeftEdge'
53+
'bottonLeftEdge'
5354
>;
5455
target?: UnsafeMixed;
5556
}

packages/components/ContextualMenu/src/ContextualMenu.settings.macos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { contextualMenuName } from './ContextualMenu.types';
88
export const settings: IComposeSettings<ContextualMenuType> = [
99
{
1010
tokens: {
11-
directionalHint: I18nManager.isRTL ? 'bottomRightEdge' : 'bottomLeftEdge',
11+
directionalHint: I18nManager.isRTL ? 'bottomRightEdge' : 'bottonLeftEdge',
1212
},
1313
container: {
1414
style: {

packages/components/ContextualMenu/src/ContextualMenu.settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const settings: IComposeSettings<ContextualMenuType> = [
1010
beakWidth: 20,
1111
borderColor: 'buttonBorder',
1212
borderWidth: 1,
13-
directionalHint: 'bottomLeftEdge',
13+
directionalHint: 'bottonLeftEdge',
1414
gapSpace: 0,
1515
minPadding: 0,
1616
},

0 commit comments

Comments
 (0)