File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed
components/password-input/src Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,15 @@ import { makeStyles } from "@fluentui/react-components";
33// Hack to remove the Edge browsers built in
44// password reveal functionality.
55// https://github.com/microsoft/fluentui/issues/23482
6+ const isEdgeLegacy =
7+ typeof window !== "undefined" && / E d g e \/ \d ./ i. test ( navigator . userAgent ) ;
8+
69export const usePasswordInputStyles = makeStyles ( {
7- edgeHack : {
8- "&::-ms-reveal" : {
9- display : "none" ,
10- } ,
11- } ,
10+ edgeHack : isEdgeLegacy
11+ ? {
12+ "&::-ms-reveal" : {
13+ display : "none" ,
14+ } ,
15+ }
16+ : { } ,
1217} ) ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export function StoryPage({
121121 navigation,
122122 children,
123123 customHeader,
124- status = [ ] ,
124+ status = [ EStoryStatus . STABLE ] ,
125125 ...rest
126126} : PropsWithChildren < TStoryPage > ) {
127127 const { styles, rootStyle } = useStoryPageStyles ( ) ;
Original file line number Diff line number Diff line change 11import { pageData } from "examples/src/components/story/story.utils" ;
22import React from "react" ;
33import { StoryPage } from "../../components/story/story-page" ;
4- import { EStoryStatus } from "../../components/story/story-status" ;
54import { useExampleWithNavigation } from "../../components/story/story.utils" ;
65import { getGhInfoByKey } from "../../routing/route-map" ;
76import { routes } from "../../routing/routes" ;
@@ -34,7 +33,6 @@ export const MainMenuPage = () => {
3433
3534 return (
3635 < StoryPage
37- status = { [ EStoryStatus . NEW ] }
3836 title = "Main menu"
3937 description = {
4038 "Variant of a main menu using fluent TabList and axis styling"
You can’t perform that action at this time.
0 commit comments