Skip to content

Commit

Permalink
Revert "fix(react-menu): use outline for menuItem focus ring (microso…
Browse files Browse the repository at this point in the history
…ft#28685)"

This reverts commit 9250428.
  • Loading branch information
YuanboXue-Amber committed Aug 1, 2023
1 parent ac8385d commit e6f1b15
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mergeClasses, makeStyles, shorthands } from '@griffel/react';
import { iconFilledClassName, iconRegularClassName } from '@fluentui/react-icons';
import { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';
import { createFocusOutlineStyle } from '@fluentui/react-tabster';
import { tokens } from '@fluentui/react-theme';
import { useCheckmarkStyles_unstable } from '../../selectable/index';
import type { MenuItemCheckboxState } from '../MenuItemCheckbox/index';
Expand All @@ -17,18 +17,7 @@ export const menuItemClassNames: SlotClassNames<MenuItemSlots> = {
};

const useStyles = makeStyles({
focusIndicator: {
':focus': {
outlineStyle: 'none',
},
':focus-visible': {
outlineStyle: 'none',
},
...createCustomFocusIndicatorStyle({
...shorthands.borderRadius(tokens.borderRadiusMedium),
...shorthands.outline(tokens.strokeWidthThick, 'solid', tokens.colorStrokeFocus2),
}),
},
focusIndicator: createFocusOutlineStyle(),
// TODO: this should be extracted to another package
root: {
...shorthands.borderRadius(tokens.borderRadiusMedium),
Expand Down

0 comments on commit e6f1b15

Please sign in to comment.