diff --git a/src/app/common/elements/button.less b/src/app/common/elements/button.less index d6090577f..3a9473bed 100644 --- a/src/app/common/elements/button.less +++ b/src/app/common/elements/button.less @@ -1,8 +1,6 @@ .wave-button { background: none; - color: inherit; border: none; - font: inherit; cursor: pointer; outline: inherit; display: flex; @@ -12,64 +10,64 @@ border-radius: 6px; height: auto; line-height: 1.5; + display: block; + white-space: nowrap; + + color: var(--form-element-text-color); + background: var(--form-element-primary-color); + i { + fill: var(--form-element-text-color); + } &.primary { color: var(--form-element-text-color); background: var(--form-element-primary-color); + i { + fill: var(--form-element-text-color); + } + } + + &.primary.outlined { + background: none; + border: 1px solid var(--form-element-primary-color); i { fill: var(--form-element-primary-color); } + } - &.solid { - color: var(--form-element-text-color); - background: var(--form-element-primary-color); - - i { - fill: var(--form-element-text-color); - } - } - - &.outlined { - background: none; - border: 1px solid var(--form-element-primary-color); - } - - &.ghost { - background: none; - } - - &:hover { - color: var(--form-element-text-color); + &.primary.ghost { + background: none; + i { + fill: var(--form-element-primary-color); } } &.secondary { - color: var(--form-element-text-color); - background: none; color: var(--form-element-text-color); background: var(--form-element-secondary-color); - box-shadow: none; - - &.solid { - color: var(--form-element-text-color); - background: var(--form-element-secondary-color); - box-shadow: none; + i { + fill: var(--form-element-text-color); } + } - &.outlined { - background: none; - border: 1px solid var(--form-element-secondary-color); - } + &.secondary.outlined { + background: none; + border: 1px solid var(--form-element-text-color); + } - &.ghost { - background: none; - padding: 6px 10px; + &.secondary.ghost { + background: none; + } - i { - fill: var(--form-element-primary-color); - } - } + &.secondary.danger { + color: var(--app-error-color); + } + + &.small { + padding: 4px 8px; + font-size: 12px; + border-radius: 3.6px; } &.term-inline { diff --git a/src/app/common/modals/alert.tsx b/src/app/common/modals/alert.tsx index a0fb5fb58..59800f8a5 100644 --- a/src/app/common/modals/alert.tsx +++ b/src/app/common/modals/alert.tsx @@ -14,7 +14,7 @@ import "./alert.less"; class AlertModal extends React.Component<{}, {}> { @boundMethod closeModal(): void { - GlobalModel.cancelAlert(); + GlobalModel.modalsModel.popModal(() => GlobalModel.cancelAlert()); } @boundMethod diff --git a/src/app/common/modals/screensettings.tsx b/src/app/common/modals/screensettings.tsx index d1813f68b..164009524 100644 --- a/src/app/common/modals/screensettings.tsx +++ b/src/app/common/modals/screensettings.tsx @@ -10,7 +10,7 @@ import cn from "classnames"; import { GlobalModel, GlobalCommandRunner, Screen } from "@/models"; import { Toggle, InlineSettingsTextEdit, SettingsError, Modal, Dropdown, Tooltip } from "@/elements"; import * as util from "@/util/util"; -import { TabIcon } from "@/common/elements/tabicon"; +import { TabIcon, Button } from "@/elements"; import { ReactComponent as GlobeIcon } from "@/assets/icons/globe.svg"; import { ReactComponent as StatusCircleIcon } from "@/assets/icons/statuscircle.svg"; import * as appconst from "@/app/appconst"; @@ -334,12 +334,9 @@ class ScreenSettingsModal extends React.Component<{}, {}> {