Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styles): update Message toast to latest design UXC [ci visual] #5760

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions packages/styles/src/message-toast.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,23 @@
@import "./mixins";

$block: #{$fd-namespace}-message-toast;
$fd-message-toast-max-width: 15rem;
$fd-message-toast-padding: 1rem;
$fd-message-toast-border-radius: var(--sapElement_BorderCornerRadius);
$fd-message-toast-background: var(--sapList_Background);
$fd-message-toast-box-shadow: var(--sapContent_Shadow2);
$fd-message-toast-text-font-family: var(--sapFontFamily);
$fd-message-toast-text-font-size: var(--sapFontSize);
$fd-message-toast-text-color: var(--sapList_TextColor);

.#{$block} {
@include fd-reset();

// CONTAINER
display: inline-flex;
width: auto;
max-width: $fd-message-toast-max-width;
box-shadow: $fd-message-toast-box-shadow;
background-color: $fd-message-toast-background;
border-radius: $fd-message-toast-border-radius;
padding-inline: $fd-message-toast-padding;
padding-block: $fd-message-toast-padding;
max-width: 15rem;
padding-block: 1rem;
display: inline-flex;
padding-inline: 1rem;
box-shadow: var(--sapContent_Lite_Shadow);
border-radius: var(--sapElement_BorderCornerRadius);
background-color: var(--sapIndicationColor_9_Background);

// TEXT
font-family: $fd-message-toast-text-font-family;
font-size: var(--sapFontSize);
color: $fd-message-toast-text-color;
text-align: center;
font-size: var(--sapFontSize);
font-family: var(--sapFontFamily);
color: var(--sapContent_ContrastTextColor);
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_fiori_3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontBoldFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: none;
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontBoldFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: none;
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_hcb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: var(--sapContent_Shadow1);
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_hcw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: var(--sapContent_Shadow1);
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_fiori_3_light_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontBoldFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: none;
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_horizon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -245,4 +245,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontBoldFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: none;
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_horizon_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontBoldFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: none;
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_horizon_hcb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: var(--sapContent_Shadow1);
}
6 changes: 6 additions & 0 deletions packages/styles/src/theming/sap_horizon_hcw.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,10 @@

/** User Menu */
--fdUserMenu_User_Name_Font_Family: var(--sapFontFamily);

/**
Message Toast
TO DO: remove when the theming variable is added
*/
--sapContent_Lite_Shadow: var(--sapContent_Shadow1);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<div class="fd-message-toast">Product added</div>
<div class="fd-message-toast" role="alert">Product added</div>
<br><br>
<div class="fd-message-toast">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
<div class="fd-message-toast" role="alert">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
Loading