Update toast styles to match Figma (#12833)
* Warn users on unsupported browsers before they lack features Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update Learn more link Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update toast styles to match Figma Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove test code Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * update tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a1897583b1
commit
b0392b8fc3
29 changed files with 156 additions and 114 deletions
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
import browserlist from "browserslist";
|
||||
import electronToChromium from "electron-to-chromium/versions";
|
||||
import PopOutIcon from "@vector-im/compound-design-tokens/assets/web/icons/pop-out";
|
||||
|
||||
import { DeviceType, parseUserAgent } from "./utils/device/parseUserAgent";
|
||||
import ToastStore from "./stores/ToastStore";
|
||||
|
@ -112,10 +113,11 @@ export function checkBrowserSupport(): void {
|
|||
title: _t("unsupported_browser|title", { brand }),
|
||||
props: {
|
||||
description: _t("unsupported_browser|description", { brand }),
|
||||
acceptLabel: _t("action|learn_more"),
|
||||
onAccept: onLearnMoreClick,
|
||||
rejectLabel: _t("action|dismiss"),
|
||||
onReject: onDismissClick,
|
||||
secondaryLabel: _t("action|learn_more"),
|
||||
SecondaryIcon: PopOutIcon,
|
||||
onSecondaryClick: onLearnMoreClick,
|
||||
primaryLabel: _t("action|dismiss"),
|
||||
onPrimaryClick: onDismissClick,
|
||||
},
|
||||
component: GenericToast,
|
||||
priority: 40,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue