-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update theme switcher to be horizontal on desktop And use accent green color for hover/active states. * Update client settings panel to use new theme colors Remove theme switcher from vertical bar on desktops. Use circle mobile close btn on client settings panel. Update theme switcher to use new theme cokors. * Update mobile styles & remove frost bg * Refactor & create full width link for mobile Update colors with theme colors. Update Run & Close buttons file name to be inside common/ui/mobile/button. Create ui/mobile/cta for the big link button for mobile screens. * Round close btn and new rm/apply btns on Filter screen Update mobile button components to RoundButton and Button. Use InstanceIcon in mobile bottom nav for Instances screen. * Update top navbar dropdowns' css: higher contrasts * Update color and bg of top navbar items Remove checkIcon from navbar items' dropdowns. * Fix lint issues * Update mob btn comp to accept element as a prop Use btn comp as a button or link. Update filter buttons' styles. Show filter err on mobile above the action buttons.
- Loading branch information
Showing
29 changed files
with
483 additions
and
368 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
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,42 @@ | ||
@import "../../../mixins.scss"; | ||
|
||
.button { | ||
display: none; | ||
|
||
// Should be updated with styles for red buttons. | ||
@include breakpoint(mobile) { | ||
border: none; | ||
text-decoration: none; | ||
margin: auto; | ||
box-sizing: border-box; | ||
width: 100%; | ||
border-radius: 6px; | ||
padding: 16px 12px; | ||
display: flex; | ||
gap: 4px; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 14px; | ||
line-height: 16px; | ||
font-weight: 700; | ||
background: var(--accentGreen); | ||
color: var(--grey8); | ||
|
||
&.fullWidth { | ||
padding: 24px; | ||
border-radius: 0; | ||
} | ||
|
||
&:disabled { | ||
color: var(--grey50); | ||
background-color: var(--grey80); | ||
} | ||
|
||
@include darkTheme { | ||
&:disabled { | ||
color: var(--grey8); | ||
background-color: var(--grey30); | ||
} | ||
} | ||
} | ||
} |
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,27 @@ | ||
import cn from "@edgedb/common/utils/classNames"; | ||
import { PropsWithChildren } from "react"; | ||
import styles from "./button.module.scss"; | ||
|
||
type ButtonProps = { | ||
label: string, | ||
icon?: JSX.Element, | ||
className?: string, | ||
disabled?: boolean, | ||
} & ({ | ||
Element: ((props: PropsWithChildren<{ className?: string }>) => JSX.Element) | ||
} | { | ||
Element?: "button", | ||
onClick: () => void; | ||
}) | ||
|
||
const Button = ({ | ||
label, | ||
icon, | ||
className, | ||
Element ="button", | ||
...props | ||
}: ButtonProps) => { | ||
return <Element className={cn(styles.button, className)} {...props}>{icon}{label}</Element>; | ||
} | ||
|
||
export default Button; |
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,2 @@ | ||
export {default as Button} from "./button"; | ||
export * from "./roundButton"; |
6 changes: 3 additions & 3 deletions
6
shared/common/ui/mobileButtons/index.tsx → ...ed/common/ui/mobile/roundButton/index.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
48 changes: 48 additions & 0 deletions
48
shared/common/ui/mobile/roundButton/roundButton.module.scss
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,48 @@ | ||
@import "../../../mixins.scss"; | ||
|
||
.container { | ||
display: none; | ||
|
||
@include breakpoint(mobile) { | ||
border: none; | ||
border-radius: 50%; | ||
color: #f9f9f9; | ||
filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.2)); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
&.run { | ||
height: 40px; | ||
width: 40px; | ||
background-color: var(--accentGreenLightTheme); | ||
|
||
&:disabled { | ||
background-color: var(--grey75); | ||
} | ||
} | ||
|
||
&.close { | ||
width: 48px; | ||
height: 48px; | ||
background-color: var(--grey40); | ||
} | ||
|
||
@include darkTheme { | ||
filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.2)); | ||
color: var(--grey8); | ||
|
||
&.close { | ||
background-color: var(--grey70); | ||
} | ||
|
||
&.run { | ||
background-color: var(--accentGreenDarkTheme); | ||
|
||
&:disabled { | ||
background-color: var(--grey30); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.