<%= render(Primer::Alpha::Dialog.new(title: "Test")) do |d|
d.with_show_button { button_text }
d.with_body do
render(Primer::Alpha::ActionMenu.new(anchor_align: :end,
select_variant: :single,
)) do |menu|
menu.with_show_button() do |button|
button.with_trailing_action_icon(icon: "triangle-down")
"Open me"
end
menu.with_item(label: "Item 1")
menu.with_item(label: "Item 2")
menu.with_item(label: "Item 3")
end
end
end %>
Steps to reproduce
Primer::Alpha::DialogPrimer::Alpha::ActionMenuActual behavior
--overlay-width: _{{xy}}_ px;. And the ActionMenu uses the same variable for its own width calulationExpected behavior