-
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.
Ensure pressing 'Enter' in SelectPanel filter input causes navigation…
… if first item is link (#2978) Co-authored-by: camertron <camertron@users.noreply.github.com>
- Loading branch information
Showing
16 changed files
with
102 additions
and
8 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 | ||
--- | ||
|
||
Ensure pressing 'Enter' in SelectPanel filter input causes navigation if first item is link. |
Binary file added
BIN
+13.7 KB
...ts/snapshots.test.ts-snapshots/primer/alpha/select_panel/list_of_links/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.7 KB
...s.test.ts-snapshots/primer/alpha/select_panel/list_of_links/dark_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.9 KB
...shots.test.ts-snapshots/primer/alpha/select_panel/list_of_links/dark_dimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14 KB
...est.ts-snapshots/primer/alpha/select_panel/list_of_links/dark_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.3 KB
...snapshots.test.ts-snapshots/primer/alpha/select_panel/list_of_links/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.4 KB
...snapshots.test.ts-snapshots/primer/alpha/select_panel/list_of_links/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.4 KB
...s/snapshots.test.ts-snapshots/primer/alpha/select_panel/list_of_links/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.4 KB
....test.ts-snapshots/primer/alpha/select_panel/list_of_links/light_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.3 KB
...st.ts-snapshots/primer/alpha/select_panel/list_of_links/light_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
16 changes: 16 additions & 0 deletions
16
previews/primer/alpha/select_panel_preview/list_of_links.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,16 @@ | ||
<% subject_id = SecureRandom.hex %> | ||
<%= render(Primer::Alpha::SelectPanel.new( | ||
data: { interaction_subject: subject_id }, | ||
select_variant: :single, | ||
fetch_strategy: :local, | ||
open_on_load: open_on_load | ||
)) do |panel| %> | ||
<% panel.with_show_button { "Panel" } %> | ||
<% panel.with_item(label: "GitHub", href: "https://github.com") %> | ||
<% panel.with_item(label: "Microsoft", href: "https://microsoft.com") %> | ||
<% panel.with_item(label: "Primer", href: "https://primer.style") %> | ||
<% panel.with_item(label: "Catalyst", href: "https://catalyst.rocks") %> | ||
<% end %> | ||
<%= render partial: "primer/alpha/select_panel_preview/interaction_subject_js", locals: { subject_id: subject_id } %> |
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