Skip to content

Commit

Permalink
chore: minor contex-menu style update
Browse files Browse the repository at this point in the history
  • Loading branch information
henrynoowah committed Feb 8, 2025
1 parent f8236a3 commit d91373f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/src/components/context-menu/context-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const ContextMenu = ({
{item.sub.map((subItem, subIndex) => (
<RadixContextMenu.Item
key={`group-${i}-item-${index}-sub-${subIndex}`}
className="nwcb-text-sm nwcb-leading-none nwcb-bg-white nwcb-shadow-md nwcb-rounded-sm nwcb-flex nwcb-items-center nwcb-h-8 nwcb-px-2 nwcb-relative nwcb-select-none nwcb-outline-none hover:nwcb-bg-blue-500 hover:nwcb-text-white"
onClick={subItem.onClick}
>
{subItem.label}
Expand Down
13 changes: 13 additions & 0 deletions packages/ui/src/components/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,19 @@ const EditorContextMenu = ({ children }: { children: React.ReactNode }) => {
{
label: "Section",
items: [
{
label: "Layouts",
sub: [
{
label: "Grid",
onClick: () => {},
},
{
label: "Free",
onClick: () => {},
},
],
},
{
label: "Insert Section Below",
onClick: () => {
Expand Down

0 comments on commit d91373f

Please sign in to comment.