1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

PM-21605 Remove Login text from error notification (#14767)

This commit is contained in:
Daniel Riera
2025-05-13 16:10:33 -04:00
committed by GitHub
parent d50db0d0dd
commit 393926beec
2 changed files with 8 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ export function NotificationConfirmationBody({
? NotificationConfirmationMessage({
buttonAria,
buttonText,
error,
itemName,
message: confirmationMessage,
messageDetails,

View File

@@ -8,6 +8,7 @@ import { spacing, themes, typography } from "../../constants/styles";
export type NotificationConfirmationMessageProps = {
buttonAria?: string;
buttonText?: string;
error?: string;
itemName?: string;
message?: string;
messageDetails?: string;
@@ -18,6 +19,7 @@ export type NotificationConfirmationMessageProps = {
export function NotificationConfirmationMessage({
buttonAria,
buttonText,
error,
itemName,
message,
messageDetails,
@@ -29,7 +31,11 @@ export function NotificationConfirmationMessage({
${message || buttonText
? html`
<div class=${singleLineWrapperStyles}>
<span class=${itemNameStyles(theme)} title=${itemName}> ${itemName} </span>
${!error && itemName
? html`
<span class=${itemNameStyles(theme)} title=${itemName}> ${itemName} </span>
`
: nothing}
<span
title=${message || buttonText}
class=${notificationConfirmationMessageStyles(theme)}