Unify component wrappers and OL-prefix dropdown components (#35152)

* Rename dropdown primitives to OL-prefixed components

* Migrate all consumers to OL-prefixed dropdown components

* Migrate subscription dropdown shells to OL components

* Update pdf-preview story to OL-prefixed dropdown components

* Migrate navbar and spelling dropdowns to OL components

* Move dropdown primitives to ol/ol-dropdown-menu, remove BS5 import aliases

* Rename dropdown prop types to OL-prefixed, clean up BS5 import aliases

* Widen OLDropdownItem/Toggle/Menu props to include AriaAttributes and data-*

GitOrigin-RevId: 0babce46867849b3f176bac8cf1652dc76fd34da
This commit is contained in:
Rebeka Dekany
2026-09-17 11:23:43 +00:00
committed by Copybot
parent 882ca2f981
commit 1ee87a823d
61 changed files with 831 additions and 796 deletions
@@ -5,9 +5,9 @@ import {
useCommandRegistry,
} from '@/features/ide-react/context/command-registry-context'
import {
DropdownDivider,
DropdownHeader,
} from '@/shared/components/dropdown/dropdown-menu'
OLDropdownDivider,
OLDropdownHeader,
} from '@/shared/components/ol/ol-dropdown-menu'
import {
MenuBarDropdown,
NestedMenuBarDropdown,
@@ -101,8 +101,8 @@ function CommandSectionContent({
}
return (
<>
{includeDivider && <DropdownDivider />}
{section.title && <DropdownHeader>{section.title}</DropdownHeader>}
{includeDivider && <OLDropdownDivider />}
{section.title && <OLDropdownHeader>{section.title}</OLDropdownHeader>}
{section.children.map(child => (
<CommandDropdownChild item={child} key={child.id} />
))}