Skip to content

Commit

Permalink
fix: remove margin from icon when ToolbarButton is vertical (microsof…
Browse files Browse the repository at this point in the history
…t#28658)

* fix: remove margin from icon when ToolbarButton is vertical

* chore: add changes
  • Loading branch information
chpalac authored Jul 27, 2023
1 parent 6320eca commit c6d2ace
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Remove margin from Icon in ToolbarButton when vertical prop is passed",
"packageName": "@fluentui/react-toolbar",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeStyles, mergeClasses } from '@griffel/react';
import { makeStyles, mergeClasses, shorthands } from '@griffel/react';
import { useButtonStyles_unstable } from '@fluentui/react-button';
import { ToolbarButtonState } from './ToolbarButton.types';

Expand All @@ -8,6 +8,7 @@ const useBaseStyles = makeStyles({
},
verticalIcon: {
fontSize: '24px',
...shorthands.margin('0'),
},
});

Expand Down

0 comments on commit c6d2ace

Please sign in to comment.