Skip to content

Commit

Permalink
Fix empty CSS creation (microsoft#28566)
Browse files Browse the repository at this point in the history
* Remove empty style declaration

* Change files

* Remove makeStyles import

* Update change/@fluentui-react-toolbar-3898461e-a785-43d9-9b44-149bb5a84e79.json

Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>

---------

Co-authored-by: Ben Howell <48106640+behowell@users.noreply.github.com>
Co-authored-by: ling1726 <lingfangao@hotmail.com>
Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
  • Loading branch information
4 people authored Jul 20, 2023
1 parent ff9dc9f commit 2adf9de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Remove empty makeStyles call.",
"packageName": "@fluentui/react-toolbar",
"email": "138819425+benlemmon-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
import { SlotClassNames } from '@fluentui/react-utilities';
import { makeStyles, mergeClasses } from '@griffel/react';
import { mergeClasses } from '@griffel/react';
import type { ToolbarGroupSlots, ToolbarGroupState } from './ToolbarGroup.types';

export const toolbarGroupClassNames: SlotClassNames<ToolbarGroupSlots> = {
root: 'fui-ToolbarGroup',
};

/**
* Styles for the root slot
*/
const useStyles = makeStyles({
root: {},
});

/**
* Apply styling to the Toolbar slots based on the state
*/
export const useToolbarGroupStyles_unstable = (state: ToolbarGroupState): ToolbarGroupState => {
const styles = useStyles();
state.root.className = mergeClasses(toolbarGroupClassNames.root, styles.root, state.root.className);
state.root.className = mergeClasses(toolbarGroupClassNames.root, state.root.className);

return state;
};

0 comments on commit 2adf9de

Please sign in to comment.