Skip to content

Commit

Permalink
fix vision dashboard flyout accessibility on smaller screen size
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed Nov 27, 2023
1 parent e12a9f7 commit d0ff1a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export interface IFlyoutStyles {
successIcon: IStyle;
sectionIndent: IStyle;
separator: IStyle;
stackDynamicScreenSize: IStyle;
title: IStyle;
}

Expand Down Expand Up @@ -90,6 +91,14 @@ export const flyoutStyles: () => IProcessedStyleSet<IFlyoutStyles> = () => {
separator: {
width: "100%"
},
stackDynamicScreenSize: {
selectors: {
"@media (max-width: 740px)": {
alignItems: "flex-start",
flexFlow: "column"
}
}
},
successIcon: {
color: theme.semanticColors.successIcon,
fontSize: "large",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export class Flyout extends React.Component<IFlyoutProps, IFlyoutState> {
tokens={stackTokens.medium}
horizontalAlign="space-around"
verticalAlign="center"
className={classNames.stackDynamicScreenSize}
>
<Stack.Item>
<Stack
Expand Down

0 comments on commit d0ff1a8

Please sign in to comment.