-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Close button in sidebar menu is now a FlatButton.
- Drawer no longer gets blue outline when opening drawer with keyboard.
- Loading branch information
1 parent
94ffaa4
commit 2c98325
Showing
7 changed files
with
29 additions
and
108 deletions.
There are no files selected for viewing
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
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
73 changes: 0 additions & 73 deletions
73
packages/panels/src/components/sidebar-menu/SidebarMenuCloseButton.module.css
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
packages/panels/src/components/sidebar-menu/SidebarMenuCloseButton.tsx
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
packages/panels/src/components/sidebar-menu/SidebarMenuCloseButtonRow.module.css
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,3 @@ | ||
.stenaFlag { | ||
height: 32px; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/panels/src/components/sidebar-menu/SidebarMenuCloseButtonRow.tsx
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,17 @@ | ||
import * as React from "react"; | ||
import styles from "./SidebarMenuCloseButtonRow.module.css"; | ||
import { ButtonElementProps, Row } from "@stenajs-webui/core"; | ||
import { FlatButton, StenaFlag, stenaTimes } from "@stenajs-webui/elements"; | ||
|
||
export interface SidebarMenuCloseButtonRowProps extends ButtonElementProps {} | ||
|
||
export const SidebarMenuCloseButtonRow: React.FC< | ||
SidebarMenuCloseButtonRowProps | ||
> = ({ onClick }) => { | ||
return ( | ||
<Row justifyContent={"space-between"} alignItems={"center"} flex={1}> | ||
<FlatButton leftIcon={stenaTimes} onClick={onClick} variant={"danger"} /> | ||
<StenaFlag className={styles.stenaFlag} /> | ||
</Row> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.