forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix empty CSS creation (microsoft#28566)
* 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
1 parent
ff9dc9f
commit 2adf9de
Showing
2 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-toolbar-3898461e-a785-43d9-9b44-149bb5a84e79.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
12 changes: 2 additions & 10 deletions
12
...eact-components/react-toolbar/src/components/ToolbarGroup/useToolbarGroupStyles.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |