Skip to content
Open
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
42 changes: 21 additions & 21 deletions packages/base-styles/internal/_wpds-token-fallbacks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $fallbacks: (
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)",
"--wpds-color-background-interactive-brand-weak-disabled": "#0000",
"--wpds-color-background-interactive-error": "#0000",
"--wpds-color-background-interactive-error-active": "#f8f8f8",
"--wpds-color-background-interactive-error-active": "#fcf7f6",
"--wpds-color-background-interactive-error-disabled": "#0000",
"--wpds-color-background-interactive-error-strong": "#cc1818",
"--wpds-color-background-interactive-error-strong-active": "#b90000",
Expand All @@ -44,19 +44,19 @@ $fallbacks: (
"--wpds-color-background-interactive-neutral-weak-disabled": "#0000",
"--wpds-color-background-surface-brand":
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 9%, white)",
"--wpds-color-background-surface-caution": "#ffea8f",
"--wpds-color-background-surface-caution-weak": "#f8f8f8",
"--wpds-color-background-surface-caution": "#f6eab9",
"--wpds-color-background-surface-caution-weak": "#fcf9ea",
"--wpds-color-background-surface-error": "#f7e6e3",
"--wpds-color-background-surface-error-weak": "#f8f8f8",
"--wpds-color-background-surface-info": "#e0ebf8",
"--wpds-color-background-surface-info-weak": "#f8f8f8",
"--wpds-color-background-surface-error-weak": "#fcf7f6",
"--wpds-color-background-surface-info": "#e0ebf7",
"--wpds-color-background-surface-info-weak": "#f5f9fd",
"--wpds-color-background-surface-neutral": "#fcfcfc",
"--wpds-color-background-surface-neutral-strong": "#fff",
"--wpds-color-background-surface-neutral-weak": "#f4f4f4",
"--wpds-color-background-surface-success": "#ccf4d2",
"--wpds-color-background-surface-success-weak": "#f8f8f8",
"--wpds-color-background-surface-warning": "#fae8c8",
"--wpds-color-background-surface-warning-weak": "#f8f8f8",
"--wpds-color-background-surface-success": "#caf6d0",
"--wpds-color-background-surface-success-weak": "#f0fcf2",
"--wpds-color-background-surface-warning": "#f6e8d0",
"--wpds-color-background-surface-warning-weak": "#fcf8f0",
"--wpds-color-background-thumb-brand":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-background-thumb-brand-active":
Expand All @@ -76,9 +76,9 @@ $fallbacks: (
"--wpds-color-foreground-content-neutral": "#1e1e1e",
"--wpds-color-foreground-content-neutral-weak": "#707070",
"--wpds-color-foreground-content-success": "#002900",
"--wpds-color-foreground-content-success-weak": "#007f2f",
"--wpds-color-foreground-content-success-weak": "#007f30",
"--wpds-color-foreground-content-warning": "#2e1900",
"--wpds-color-foreground-content-warning-weak": "#936400",
"--wpds-color-foreground-content-warning-weak": "#946400",
"--wpds-color-foreground-interactive-brand":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-foreground-interactive-brand-active":
Expand All @@ -90,8 +90,8 @@ $fallbacks: (
"--wpds-color-foreground-interactive-error": "#cc1818",
"--wpds-color-foreground-interactive-error-active": "#470000",
"--wpds-color-foreground-interactive-error-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-error-strong": "#f3efef",
"--wpds-color-foreground-interactive-error-strong-active": "#f3efef",
"--wpds-color-foreground-interactive-error-strong": "#f2efef",
"--wpds-color-foreground-interactive-error-strong-active": "#f2efef",
"--wpds-color-foreground-interactive-error-strong-disabled": "#8d8d8d",
"--wpds-color-foreground-interactive-neutral": "#1e1e1e",
"--wpds-color-foreground-interactive-neutral-active": "#1e1e1e",
Expand Down Expand Up @@ -120,19 +120,19 @@ $fallbacks: (
"color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)",
"--wpds-color-stroke-surface-brand-strong":
"var(--wp-admin-theme-color, #3858e9)",
"--wpds-color-stroke-surface-caution": "#d0c38b",
"--wpds-color-stroke-surface-caution": "#d1c38b",
"--wpds-color-stroke-surface-caution-strong": "#836b00",
"--wpds-color-stroke-surface-error": "#dfafa8",
"--wpds-color-stroke-surface-error": "#deb0a9",
"--wpds-color-stroke-surface-error-strong": "#cc1818",
"--wpds-color-stroke-surface-info": "#aac6e5",
"--wpds-color-stroke-surface-info": "#aec6e0",
"--wpds-color-stroke-surface-info-strong": "#006bd7",
"--wpds-color-stroke-surface-neutral": "#dbdbdb",
"--wpds-color-stroke-surface-neutral-strong": "#8d8d8d",
"--wpds-color-stroke-surface-neutral-weak": "#f0f0f0",
"--wpds-color-stroke-surface-success": "#92d19d",
"--wpds-color-stroke-surface-success-strong": "#007f2f",
"--wpds-color-stroke-surface-warning": "#e1be80",
"--wpds-color-stroke-surface-warning-strong": "#936400",
"--wpds-color-stroke-surface-success": "#93d29e",
"--wpds-color-stroke-surface-success-strong": "#007f30",
"--wpds-color-stroke-surface-warning": "#e0be82",
"--wpds-color-stroke-surface-warning-strong": "#946400",
"--wpds-cursor-control": "pointer",
"--wpds-dimension-gap-2xl": "32px",
"--wpds-dimension-gap-3xl": "40px",
Expand Down
9 changes: 4 additions & 5 deletions packages/block-library/src/video/tracks-editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import {
__experimentalGrid as Grid,
__experimentalHStack as HStack,
__experimentalVStack as VStack,
privateApis as componentsPrivateApis,
} from '@wordpress/components';
import { Badge } from '@wordpress/ui';
import {
MediaUpload,
MediaUploadCheck,
Expand All @@ -25,9 +25,6 @@ import { upload, media } from '@wordpress/icons';
import { useSelect } from '@wordpress/data';
import { useState, useRef, useEffect } from '@wordpress/element';
import { getFilename } from '@wordpress/url';
import { unlock } from '../lock-unlock';

const { Badge: WCBadge } = unlock( componentsPrivateApis );

const ALLOWED_TYPES = [ 'text/vtt' ];

Expand Down Expand Up @@ -58,7 +55,9 @@ function TrackList( { tracks, onEditPress } ) {
>
<span>{ track.label }</span>
<HStack justify="flex-end">
{ track.default && <WCBadge>{ __( 'Default' ) }</WCBadge> }
{ track.default && (
<Badge intent="none">{ __( 'Default' ) }</Badge>
) }
<Button
__next40pxDefaultSize
variant="tertiary"
Expand Down
46 changes: 23 additions & 23 deletions packages/theme/prebuilt/css/design-tokens.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
/* Background color for interactive elements with brand tone and weak emphasis. */
--wpds-color-background-interactive-brand-weak: #0000;
/* Background color for interactive elements with brand tone and weak emphasis that are hovered, focused, or active. */
--wpds-color-background-interactive-brand-weak-active: #e6eaf5;
--wpds-color-background-interactive-brand-weak-active: #e5eaf6;
/* Background color for interactive elements with brand tone and weak emphasis, in their disabled state. */
--wpds-color-background-interactive-brand-weak-disabled: #0000;
/* Background color for interactive elements with error tone and normal emphasis. */
--wpds-color-background-interactive-error: #0000;
/* Background color for interactive elements with error tone and normal emphasis that are hovered, focused, or active. */
--wpds-color-background-interactive-error-active: #f8f8f8;
--wpds-color-background-interactive-error-active: #fcf7f6;
/* Background color for interactive elements with error tone and normal emphasis, in their disabled state. */
--wpds-color-background-interactive-error-disabled: #0000;
/* Background color for interactive elements with error tone and strong emphasis. */
Expand Down Expand Up @@ -72,33 +72,33 @@
/* Background color for interactive elements with neutral tone and weak emphasis, in their disabled state. */
--wpds-color-background-interactive-neutral-weak-disabled: #0000;
/* Background color for surfaces with brand tone and normal emphasis. */
--wpds-color-background-surface-brand: #ebf0fb;
--wpds-color-background-surface-brand: #ecf0f9;
/* Background color for surfaces with caution tone and normal emphasis. */
--wpds-color-background-surface-caution: #ffea8f;
--wpds-color-background-surface-caution: #f6eab9;
/* Background color for surfaces with caution tone and weak emphasis. */
--wpds-color-background-surface-caution-weak: #f8f8f8;
--wpds-color-background-surface-caution-weak: #fcf9ea;
/* Background color for surfaces with error tone and normal emphasis. */
--wpds-color-background-surface-error: #f7e6e3;
/* Background color for surfaces with error tone and weak emphasis. */
--wpds-color-background-surface-error-weak: #f8f8f8;
--wpds-color-background-surface-error-weak: #fcf7f6;
/* Background color for surfaces with info tone and normal emphasis. */
--wpds-color-background-surface-info: #e0ebf8;
--wpds-color-background-surface-info: #e0ebf7;
/* Background color for surfaces with info tone and weak emphasis. */
--wpds-color-background-surface-info-weak: #f8f8f8;
--wpds-color-background-surface-info-weak: #f5f9fd;
/* Background color for surfaces with normal emphasis. */
--wpds-color-background-surface-neutral: #fcfcfc;
/* Background color for surfaces with strong emphasis. */
--wpds-color-background-surface-neutral-strong: #fff;
/* Background color for surfaces with weak emphasis. */
--wpds-color-background-surface-neutral-weak: #f4f4f4;
/* Background color for surfaces with success tone and normal emphasis. */
--wpds-color-background-surface-success: #ccf4d2;
--wpds-color-background-surface-success: #caf6d0;
/* Background color for surfaces with success tone and weak emphasis. */
--wpds-color-background-surface-success-weak: #f8f8f8;
--wpds-color-background-surface-success-weak: #f0fcf2;
/* Background color for surfaces with warning tone and normal emphasis. */
--wpds-color-background-surface-warning: #fae8c8;
--wpds-color-background-surface-warning: #f6e8d0;
/* Background color for surfaces with warning tone and weak emphasis. */
--wpds-color-background-surface-warning-weak: #f8f8f8;
--wpds-color-background-surface-warning-weak: #fcf8f0;
/* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track). */
--wpds-color-background-thumb-brand: #3858e9;
/* Background color for thumbs with a brand tone and normal emphasis (eg. slider thumb and filled track) that are hovered, focused, or active. */
Expand Down Expand Up @@ -134,11 +134,11 @@
/* Foreground color for content like text with success tone and normal emphasis. */
--wpds-color-foreground-content-success: #002900;
/* Foreground color for content like text with success tone and weak emphasis. */
--wpds-color-foreground-content-success-weak: #007f2f;
--wpds-color-foreground-content-success-weak: #007f30;
/* Foreground color for content like text with warning tone and normal emphasis. */
--wpds-color-foreground-content-warning: #2e1900;
/* Foreground color for content like text with warning tone and weak emphasis. */
--wpds-color-foreground-content-warning-weak: #936400;
--wpds-color-foreground-content-warning-weak: #946400;
/* Foreground color for interactive elements with brand tone and normal emphasis. */
--wpds-color-foreground-interactive-brand: #3858e9;
/* Foreground color for interactive elements with brand tone and normal emphasis that are hovered, focused, or active. */
Expand All @@ -158,9 +158,9 @@
/* Foreground color for interactive elements with error tone and normal emphasis, in their disabled state. */
--wpds-color-foreground-interactive-error-disabled: #8d8d8d;
/* Foreground color for interactive elements with error tone and strong emphasis. */
--wpds-color-foreground-interactive-error-strong: #f3efef;
--wpds-color-foreground-interactive-error-strong: #f2efef;
/* Foreground color for interactive elements with error tone and strong emphasis that are hovered, focused, or active. */
--wpds-color-foreground-interactive-error-strong-active: #f3efef;
--wpds-color-foreground-interactive-error-strong-active: #f2efef;
/* Foreground color for interactive elements with error tone and strong emphasis, in their disabled state. */
--wpds-color-foreground-interactive-error-strong-disabled: #8d8d8d;
/* Foreground color for interactive elements with neutral tone and normal emphasis. */
Expand Down Expand Up @@ -210,15 +210,15 @@
/* Decorative stroke color used to define brand-toned surface boundaries with strong emphasis. */
--wpds-color-stroke-surface-brand-strong: #3858e9;
/* Decorative stroke color used to define caution-toned surface boundaries with normal emphasis. */
--wpds-color-stroke-surface-caution: #d0c38b;
--wpds-color-stroke-surface-caution: #d1c38b;
/* Decorative stroke color used to define caution-toned surface boundaries with strong emphasis. */
--wpds-color-stroke-surface-caution-strong: #836b00;
/* Decorative stroke color used to define error-toned surface boundaries with normal emphasis. */
--wpds-color-stroke-surface-error: #dfafa8;
--wpds-color-stroke-surface-error: #deb0a9;
/* Decorative stroke color used to define error-toned surface boundaries with strong emphasis. */
--wpds-color-stroke-surface-error-strong: #cc1818;
/* Decorative stroke color used to define info-toned surface boundaries with normal emphasis. */
--wpds-color-stroke-surface-info: #aac6e5;
--wpds-color-stroke-surface-info: #aec6e0;
/* Decorative stroke color used to define info-toned surface boundaries with strong emphasis. */
--wpds-color-stroke-surface-info-strong: #006bd7;
/* Decorative stroke color used to define neutrally-toned surface boundaries with normal emphasis. */
Expand All @@ -228,13 +228,13 @@
/* Decorative stroke color used to define neutrally-toned surface boundaries with weak emphasis. */
--wpds-color-stroke-surface-neutral-weak: #f0f0f0;
/* Decorative stroke color used to define success-toned surface boundaries with normal emphasis. */
--wpds-color-stroke-surface-success: #92d19d;
--wpds-color-stroke-surface-success: #93d29e;
/* Decorative stroke color used to define success-toned surface boundaries with strong emphasis. */
--wpds-color-stroke-surface-success-strong: #007f2f;
--wpds-color-stroke-surface-success-strong: #007f30;
/* Decorative stroke color used to define warning-toned surface boundaries with normal emphasis. */
--wpds-color-stroke-surface-warning: #e1be80;
--wpds-color-stroke-surface-warning: #e0be82;
/* Decorative stroke color used to define warning-toned surface boundaries with strong emphasis. */
--wpds-color-stroke-surface-warning-strong: #936400;
--wpds-color-stroke-surface-warning-strong: #946400;
/* Cursor style for interactive controls that are not links (e.g. buttons, checkboxes, and toggles). */
--wpds-cursor-control: pointer;
/* 2x extra large gap */
Expand Down
42 changes: 21 additions & 21 deletions packages/theme/prebuilt/js/design-token-fallbacks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
'color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 12%, white)',
'--wpds-color-background-interactive-brand-weak-disabled': '#0000',
'--wpds-color-background-interactive-error': '#0000',
'--wpds-color-background-interactive-error-active': '#f8f8f8',
'--wpds-color-background-interactive-error-active': '#fcf7f6',
'--wpds-color-background-interactive-error-disabled': '#0000',
'--wpds-color-background-interactive-error-strong': '#cc1818',
'--wpds-color-background-interactive-error-strong-active': '#b90000',
Expand All @@ -42,19 +42,19 @@ export default {
'--wpds-color-background-interactive-neutral-weak-disabled': '#0000',
'--wpds-color-background-surface-brand':
'color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 9%, white)',
'--wpds-color-background-surface-caution': '#ffea8f',
'--wpds-color-background-surface-caution-weak': '#f8f8f8',
'--wpds-color-background-surface-caution': '#f6eab9',
'--wpds-color-background-surface-caution-weak': '#fcf9ea',
'--wpds-color-background-surface-error': '#f7e6e3',
'--wpds-color-background-surface-error-weak': '#f8f8f8',
'--wpds-color-background-surface-info': '#e0ebf8',
'--wpds-color-background-surface-info-weak': '#f8f8f8',
'--wpds-color-background-surface-error-weak': '#fcf7f6',
'--wpds-color-background-surface-info': '#e0ebf7',
'--wpds-color-background-surface-info-weak': '#f5f9fd',
'--wpds-color-background-surface-neutral': '#fcfcfc',
'--wpds-color-background-surface-neutral-strong': '#fff',
'--wpds-color-background-surface-neutral-weak': '#f4f4f4',
'--wpds-color-background-surface-success': '#ccf4d2',
'--wpds-color-background-surface-success-weak': '#f8f8f8',
'--wpds-color-background-surface-warning': '#fae8c8',
'--wpds-color-background-surface-warning-weak': '#f8f8f8',
'--wpds-color-background-surface-success': '#caf6d0',
'--wpds-color-background-surface-success-weak': '#f0fcf2',
'--wpds-color-background-surface-warning': '#f6e8d0',
'--wpds-color-background-surface-warning-weak': '#fcf8f0',
'--wpds-color-background-thumb-brand':
'var(--wp-admin-theme-color, #3858e9)',
'--wpds-color-background-thumb-brand-active':
Expand All @@ -74,9 +74,9 @@ export default {
'--wpds-color-foreground-content-neutral': '#1e1e1e',
'--wpds-color-foreground-content-neutral-weak': '#707070',
'--wpds-color-foreground-content-success': '#002900',
'--wpds-color-foreground-content-success-weak': '#007f2f',
'--wpds-color-foreground-content-success-weak': '#007f30',
'--wpds-color-foreground-content-warning': '#2e1900',
'--wpds-color-foreground-content-warning-weak': '#936400',
'--wpds-color-foreground-content-warning-weak': '#946400',
'--wpds-color-foreground-interactive-brand':
'var(--wp-admin-theme-color, #3858e9)',
'--wpds-color-foreground-interactive-brand-active':
Expand All @@ -88,8 +88,8 @@ export default {
'--wpds-color-foreground-interactive-error': '#cc1818',
'--wpds-color-foreground-interactive-error-active': '#470000',
'--wpds-color-foreground-interactive-error-disabled': '#8d8d8d',
'--wpds-color-foreground-interactive-error-strong': '#f3efef',
'--wpds-color-foreground-interactive-error-strong-active': '#f3efef',
'--wpds-color-foreground-interactive-error-strong': '#f2efef',
'--wpds-color-foreground-interactive-error-strong-active': '#f2efef',
'--wpds-color-foreground-interactive-error-strong-disabled': '#8d8d8d',
'--wpds-color-foreground-interactive-neutral': '#1e1e1e',
'--wpds-color-foreground-interactive-neutral-active': '#1e1e1e',
Expand Down Expand Up @@ -118,19 +118,19 @@ export default {
'color-mix(in oklch, var(--wp-admin-theme-color, #3858e9) 40%, white)',
'--wpds-color-stroke-surface-brand-strong':
'var(--wp-admin-theme-color, #3858e9)',
'--wpds-color-stroke-surface-caution': '#d0c38b',
'--wpds-color-stroke-surface-caution': '#d1c38b',
'--wpds-color-stroke-surface-caution-strong': '#836b00',
'--wpds-color-stroke-surface-error': '#dfafa8',
'--wpds-color-stroke-surface-error': '#deb0a9',
'--wpds-color-stroke-surface-error-strong': '#cc1818',
'--wpds-color-stroke-surface-info': '#aac6e5',
'--wpds-color-stroke-surface-info': '#aec6e0',
'--wpds-color-stroke-surface-info-strong': '#006bd7',
'--wpds-color-stroke-surface-neutral': '#dbdbdb',
'--wpds-color-stroke-surface-neutral-strong': '#8d8d8d',
'--wpds-color-stroke-surface-neutral-weak': '#f0f0f0',
'--wpds-color-stroke-surface-success': '#92d19d',
'--wpds-color-stroke-surface-success-strong': '#007f2f',
'--wpds-color-stroke-surface-warning': '#e1be80',
'--wpds-color-stroke-surface-warning-strong': '#936400',
'--wpds-color-stroke-surface-success': '#93d29e',
'--wpds-color-stroke-surface-success-strong': '#007f30',
'--wpds-color-stroke-surface-warning': '#e0be82',
'--wpds-color-stroke-surface-warning-strong': '#946400',
'--wpds-cursor-control': 'pointer',
'--wpds-dimension-gap-2xl': '32px',
'--wpds-dimension-gap-3xl': '40px',
Expand Down
Loading
Loading