mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-23 10:53:37 +00:00
Add styles to error icon in nav bar
This commit is contained in:
1 parent
f82034ef33
commit
3de9575203
3 files changed
+17
-1
No files matched your search
@@ -30,6 +30,8 @@
|
||||
|
||||
.nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--cpd-space-1x);
|
||||
|
||||
padding: var(--cpd-space-1x) var(--cpd-space-2x);
|
||||
color: var(--cpd-color-text-secondary);
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* Copyright 2026 Element Creations Ltd.
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
|
||||
.nav-bar-error-icon {
|
||||
display: inline-block;
|
||||
|
||||
color: var(--cpd-color-icon-critical-primary);
|
||||
}
|
||||
@@ -16,6 +16,8 @@ import UserGreeting from "../components/UserGreeting";
|
||||
import { graphql } from "../gql";
|
||||
import { graphqlRequest } from "../graphql";
|
||||
|
||||
import styles from "./_account.module.css";
|
||||
|
||||
const QUERY = graphql(/* GraphQL */ `
|
||||
query CurrentUserGreeting {
|
||||
viewer {
|
||||
@@ -66,7 +68,7 @@ function Account(): React.ReactElement {
|
||||
|
||||
<NavBar>
|
||||
<NavItem to="/">{t("frontend.nav.settings")}</NavItem>
|
||||
<NavItem to="/sessions">{t("frontend.nav.devices")} <IconErrorSolid /></NavItem>
|
||||
<NavItem to="/sessions">{t("frontend.nav.devices")} <IconErrorSolid className={styles.navBarErrorIcon} /></NavItem>
|
||||
{planManagementIframeUri && (
|
||||
<NavItem to="/plan">{t("frontend.nav.plan")}</NavItem>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user