-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix keyboard functionality with deferred loading in ActionMenu (#2059)
- Loading branch information
Showing
6 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@primer/view-components': patch | ||
--- | ||
|
||
Fix keyboard functionality with deferred loading in ActionMenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,6 +284,11 @@ def leading_visual_single_select | |
end | ||
end | ||
end | ||
|
||
# @label Two menus | ||
# | ||
def two_menus | ||
end | ||
end | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
previews/primer/alpha/action_menu_preview/two_menus.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<%= render(Primer::Alpha::ActionMenu.new(menu_id: "menu-1")) do |menu| %> | ||
<% menu.with_show_button { |button| button.with_trailing_action_icon(icon: :"triangle-down"); "Pac-Man" } %> | ||
<% menu.with_item(label: "Eat a dot") %> | ||
<% menu.with_item(label: "Avoid a ghost") %> | ||
<% menu.with_item(label: "Eat a stunned ghost") %> | ||
<% end %> | ||
<%= render(Primer::Alpha::ActionMenu.new(menu_id: "menu-2")) do |menu| %> | ||
<% menu.with_show_button { |button| button.with_trailing_action_icon(icon: :"triangle-down"); "Mario Bros" } %> | ||
<% menu.with_item(label: "Stomp a turtle") %> | ||
<% menu.with_item(label: "Collect a gold coin") %> | ||
<% menu.with_item(label: "Save the princess") %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters