diff --git a/packages/format-library/src/text-color/inline.js b/packages/format-library/src/text-color/inline.js
index f71c7766222582..3c34b760a278ae 100644
--- a/packages/format-library/src/text-color/inline.js
+++ b/packages/format-library/src/text-color/inline.js
@@ -17,13 +17,24 @@ import {
store as blockEditorStore,
useCachedTruthy,
} from '@wordpress/block-editor';
-import { Popover, TabPanel } from '@wordpress/components';
+import {
+ Popover,
+ privateApis as componentsPrivateApis,
+} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import { textColor as settings, transparentValue } from './index';
+import { unlock } from '../lock-unlock';
+
+const { Tabs } = unlock( componentsPrivateApis );
+
+const TABS = [
+ { name: 'color', title: __( 'Text' ) },
+ { name: 'backgroundColor', title: __( 'Background' ) },
+];
function parseCSS( css = '' ) {
return css.split( ';' ).reduce( ( accumulator, rule ) => {
@@ -158,27 +169,29 @@ export default function InlineColorUI( {
className="components-inline-color-popover"
anchor={ popoverAnchor }
>
-
- { ( tab ) => (
-
- ) }
-
+
+
+ { TABS.map( ( tab ) => (
+
+ { tab.title }
+
+ ) ) }
+
+ { TABS.map( ( tab ) => (
+
+
+
+ ) ) }
+
);
}