Skip to content

Commit 2e48af3

Browse files
authored
Fix FluentTester StrokeWidthTest page so strokeWidth 0.5 is visible (#3008)
* Fix StrokeWidthTest so strokeWidth05 is visible * Change files
1 parent 0458d80 commit 2e48af3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

apps/fluent-tester/src/TestComponents/StrokeWidth/StrokeWidthTest.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const getThemedStyles = themedStyleSheet((t: Theme) => {
2424
height: 100,
2525
backgroundColor: isLightMode ? globalTokens.color.grey80 : globalTokens.color.grey10,
2626
display: 'flex',
27-
justifyContent: 'center',
2827
marginTop: 8,
2928
},
3029
};
@@ -41,10 +40,11 @@ const StrokeWidthTestComponent: React.FunctionComponent<StrokeWidthTestComponent
4140
const isLightMode = getCurrentAppearance(theme.host.appearance, 'light') === 'light';
4241
const exampleStrokeStyle = React.useMemo(
4342
() => ({
44-
height: props.strokeWidth,
45-
backgroundColor: isLightMode ? globalTokens.color.grey10 : globalTokens.color.grey80,
43+
height: 50,
44+
borderBottomWidth: props.strokeWidth,
45+
borderColor: isLightMode ? globalTokens.color.grey10 : globalTokens.color.grey80,
4646
}),
47-
[props.strokeWidth],
47+
[props.strokeWidth, isLightMode],
4848
);
4949

5050
return (
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Fix StrokeWidthTest so strokeWidth05 is visible",
4+
"packageName": "@fluentui-react-native/tester",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

0 commit comments

Comments
 (0)