Skip to content

Commit 51bf3d3

Browse files
committed
fixup
1 parent 7532370 commit 51bf3d3

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

packages/react-components/react-toolbar/library/etc/react-toolbar.api.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export type ToolbarButtonBaseState = DistributiveOmit<ToolbarButtonState, 'appea
4949
// @public
5050
export type ToolbarButtonProps = ComponentProps<ButtonSlots> & Partial<Pick<ButtonProps, 'disabled' | 'disabledFocusable'>> & {
5151
appearance?: 'primary' | 'subtle' | 'transparent';
52-
} & {
5352
vertical?: boolean;
5453
};
5554

packages/react-components/react-toolbar/library/src/components/ToolbarButton/ToolbarButton.types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type { ButtonProps, ButtonSlots, ButtonState } from '@fluentui/react-butt
77
export type ToolbarButtonProps = ComponentProps<ButtonSlots> &
88
Partial<Pick<ButtonProps, 'disabled' | 'disabledFocusable'>> & {
99
appearance?: 'primary' | 'subtle' | 'transparent';
10-
} & {
1110
vertical?: boolean;
1211
};
1312

packages/react-components/react-toolbar/library/src/components/ToolbarButton/useToolbarButton.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ export const useToolbarButton_unstable = (
1919
props: ToolbarButtonProps,
2020
ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,
2121
): ToolbarButtonState => {
22-
const state = useToolbarButtonBase_unstable(props, ref);
22+
const { appearance = 'subtle', ...baseProps } = props;
23+
const state = useToolbarButtonBase_unstable(baseProps, ref);
2324

2425
return {
25-
appearance: 'subtle',
26+
appearance,
2627
size: 'medium',
2728
shape: 'rounded',
2829
...state,

packages/react-components/react-toolbar/library/src/components/ToolbarRadioButton/useToolbarRadioButton.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const useToolbarRadioButton_unstable = (
2727

2828
return {
2929
...state,
30-
3130
appearance,
3231
size: size || contextSize,
3332
shape: 'rounded',

0 commit comments

Comments
 (0)