diff --git a/packages/components/src/color-palette/test/__snapshots__/index.js.snap b/packages/components/src/color-palette/test/__snapshots__/index.js.snap
index ea834490fd18cf..e7187ef05fcbc2 100644
--- a/packages/components/src/color-palette/test/__snapshots__/index.js.snap
+++ b/packages/components/src/color-palette/test/__snapshots__/index.js.snap
@@ -106,7 +106,7 @@ exports[`ColorPalette Dropdown should render it correctly 1`] = `
renderToggle={[Function]}
>
+
{ renderToggle( args ) }
{ isOpen && (
{
+ return (
+ <>
+
+
This is a DropdownMenu component:
+
+
+
+
This is an assembled Dropdown component:
+
(
+
+ ) }
+ renderContent={ () => (
+
+
+
+
+
+
+ ) }
+ />
+
+ >
+ );
+};
+
+export const _default = () => {
+ return ;
+};
diff --git a/packages/components/src/dropdown/style.scss b/packages/components/src/dropdown/style.scss
new file mode 100644
index 00000000000000..8aeea6338019a3
--- /dev/null
+++ b/packages/components/src/dropdown/style.scss
@@ -0,0 +1,3 @@
+.components-dropdown {
+ display: inline-block;
+}
diff --git a/packages/components/src/style.scss b/packages/components/src/style.scss
index bba2e5e0c5fc2f..ec1b58335fedb2 100644
--- a/packages/components/src/style.scss
+++ b/packages/components/src/style.scss
@@ -13,6 +13,7 @@
@import "./disabled/style.scss";
@import "./draggable/style.scss";
@import "./drop-zone/style.scss";
+@import "./dropdown/style.scss";
@import "./dropdown-menu/style.scss";
@import "./external-link/style.scss";
@import "./focal-point-picker/style.scss";
diff --git a/packages/components/src/toolbar-button/style.scss b/packages/components/src/toolbar-button/style.scss
index c7e64b5a04bf10..c9ad3ffd51a365 100644
--- a/packages/components/src/toolbar-button/style.scss
+++ b/packages/components/src/toolbar-button/style.scss
@@ -1,37 +1,4 @@
.components-toolbar__control.components-button {
- display: inline-flex;
- align-items: flex-end;
- margin: 0;
- padding: 3px;
- outline: none;
- cursor: pointer;
- position: relative;
- width: $icon-button-size;
- height: $icon-button-size;
-
- // Unset icon button styles
- &:not([aria-disabled="true"]):not(.is-default):active,
- &:not([aria-disabled="true"]):hover,
- &:not([aria-disabled="true"]):focus {
- outline: none;
- box-shadow: none;
- background: none;
- border: none;
- }
-
- // Disabled
- &:disabled {
- cursor: default;
- }
-
- & > svg {
- padding: 5px;
- border-radius: $radius-round-rectangle;
- height: 30px;
- width: 30px;
- box-sizing: border-box;
- }
-
// Subscript for numbered icon buttons, like headings
&[data-subscript] svg {
padding: 5px 10px 5px 0;
@@ -48,43 +15,7 @@
bottom: 10px;
}
- // Assign hover style to child element, not the button itself
- &:not(:disabled):not([aria-disabled="true"]):hover {
- box-shadow: none;
- }
-
- &:not(:disabled).is-active > svg,
- &:not(:disabled):hover > svg {
- @include formatting-button-style__hover;
- }
-
- // Active & toggled style
- &:not(:disabled).is-active > svg {
- @include formatting-button-style__active;
- }
-
&:not(:disabled).is-active[data-subscript]::after {
color: $white;
}
-
- // Focus style
- &:not(:disabled):focus > svg {
- @include formatting-button-style__focus;
- // Remove outline from SVG to apply on focused element - see below.
- outline: 0;
- }
-
- // Microsoft Edge in high contrast mode only displays outlines on focused elements, not their children.
- &:not(:disabled).is-active {
- outline: 1px dotted transparent;
- outline-offset: -2px;
- }
- // Microsoft Edge in high contrast mode only displays outlines on focused elements, not their children.
- &:not(:disabled):focus {
- outline: 2px solid transparent;
- }
-}
-
-.components-toolbar__control .dashicon {
- display: block;
}
diff --git a/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap b/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap
index 5096eaa7c803b5..e0337df629bd3a 100644
--- a/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap
+++ b/packages/edit-post/src/components/header/more-menu/test/__snapshots__/index.js.snap
@@ -30,7 +30,7 @@ exports[`MoreMenu should match snapshot 1`] = `
renderToggle={[Function]}
>