Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(ui): add semantic tokens for svg fills and preview (#16962)
Mihaela Dumitru3c85aa2350e6
diff --git a/css/_base.scss b/css/_base.scssindex 2a4e3f7609..653c78224d 100644--- a/css/_base.scss+++ b/css/_base.scss@@ -45,7 +45,7 @@ body {.jitsi-icon {&-default svg {- fill: var(--icon-default-color, white);+ fill: var(--icon-svg-fill, white);}}diff --git a/css/premeeting/_premeeting-screens.scss b/css/premeeting/_premeeting-screens.scssindex bdf19725e5..68f6a394e6 100644--- a/css/premeeting/_premeeting-screens.scss+++ b/css/premeeting/_premeeting-screens.scss@@ -106,7 +106,7 @@}#preview {- background: #040404;+ background: var(--prejoin-preview-background, #040404);display: flex;align-items: center;justify-content: center;diff --git a/react/features/base/ui/Tokens.ts b/react/features/base/ui/Tokens.tsindex e27ae25c6d..bf08fcfc4e 100644--- a/react/features/base/ui/Tokens.ts+++ b/react/features/base/ui/Tokens.ts@@ -155,6 +155,7 @@ export const colorMap = {preMeetingBackground: 'surface02', // Pre-meeting screen container backgroundpreMeetingPreview: 'ui01', // Video preview in pre-meetingprejoinDialogBackground: 'uiBackground', // Prejoin dialog background+ prejoinPreviewBackground: 'uiBackground', // Prejoin video preview background (#040404)prejoinDialogDelimiter: 'ui03', // Prejoin dialog delimiter lineprejoinDialogDelimiterText: 'text01', // Prejoin dialog delimiter textprejoinTitleText: 'text01', // Prejoin title text color@@ -508,6 +509,9 @@ export const colorMap = {// High-contrasticon04: 'surface01',+ // SVG fill color+ iconSvgFill: 'icon01',+// ErroriconError: 'action03',diff --git a/react/features/base/ui/constants.web.ts b/react/features/base/ui/constants.web.tsindex 63afcd6526..15830972e8 100644--- a/react/features/base/ui/constants.web.ts+++ b/react/features/base/ui/constants.web.ts@@ -13,23 +13,25 @@ export const commonStyles = (theme: Theme) => {return {':root': {// Inject semantic tokens as CSS custom properties for use in SCSS- '--toolbox-background-color': theme.palette.toolboxBackground,'--drawer-background-color': theme.palette.drawerBackground,- '--toolbar-button-color': theme.palette.toolbarButton,- '--toolbar-button-hover-color': theme.palette.toolbarButtonHover,- '--toolbar-button-active-color': theme.palette.toolbarButtonActive,- '--toolbar-icon-color': theme.palette.toolbarIcon,- '--toolbar-icon-hover-color': theme.palette.toolbarIconHover,- '--toolbar-icon-active-color': theme.palette.toolbarIconActive,+ '--icon-svg-fill': theme.palette.iconSvgFill,'--overflow-menu-background-color': theme.palette.overflowMenuBackground,- '--overflow-menu-item-text-color': theme.palette.overflowMenuItemText,- '--overflow-menu-item-icon-color': theme.palette.overflowMenuItemIcon,- '--overflow-menu-item-hover-color': theme.palette.overflowMenuItemHover,'--overflow-menu-item-disabled-color': theme.palette.overflowMenuItemDisabled,+ '--overflow-menu-item-hover-color': theme.palette.overflowMenuItemHover,+ '--overflow-menu-item-icon-color': theme.palette.overflowMenuItemIcon,+ '--overflow-menu-item-text-color': theme.palette.overflowMenuItemText,+ '--prejoin-preview-background': theme.palette.prejoinPreviewBackground,'--reactions-menu-background': theme.palette.reactionsMenuBackground,- '--reactions-menu-button-toggled': theme.palette.reactionsMenuButtonToggled,'--reactions-menu-box-shadow-1': theme.palette.reactionsMenuBoxShadow1,- '--reactions-menu-box-shadow-2': theme.palette.reactionsMenuBoxShadow2+ '--reactions-menu-box-shadow-2': theme.palette.reactionsMenuBoxShadow2,+ '--reactions-menu-button-toggled': theme.palette.reactionsMenuButtonToggled,+ '--toolbar-button-active-color': theme.palette.toolbarButtonActive,+ '--toolbar-button-color': theme.palette.toolbarButton,+ '--toolbar-button-hover-color': theme.palette.toolbarButtonHover,+ '--toolbar-icon-active-color': theme.palette.toolbarIconActive,+ '--toolbar-icon-color': theme.palette.toolbarIcon,+ '--toolbar-icon-hover-color': theme.palette.toolbarIconHover,+ '--toolbox-background-color': theme.palette.toolboxBackground},'.empty-list': {diff --git a/react/features/base/ui/types.ts b/react/features/base/ui/types.tsindex 5fcffe92d9..a0865e9041 100644--- a/react/features/base/ui/types.ts+++ b/react/features/base/ui/types.ts@@ -26,6 +26,7 @@ export interface IPalette {icon02: string;icon03: string;icon04: string;+ iconSvgFill: string;iconError: string;link01: string;link01Active: string;@@ -153,6 +154,7 @@ export interface IPalette {prejoinDialogBackground: string;prejoinDialogDelimiter: string;prejoinDialogDelimiterText: string;+ prejoinPreviewBackground: string;prejoinRecordingWarningText: string;prejoinRoomNameText: string;prejoinTitleText: string;