-
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.
Allow
:link
Button scheme text label to wrap (#2750)
Co-authored-by: langermank <langermank@users.noreply.github.com>
- Loading branch information
1 parent
6d0e233
commit ba87524
Showing
6 changed files
with
25 additions
and
0 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,6 @@ | ||
--- | ||
"@primer/view-components": patch | ||
--- | ||
|
||
Allow `:link` Button scheme text label to wrap | ||
|
Binary file added
BIN
+52.2 KB
...apshots.test.ts-snapshots/primer/beta/button/link_scheme_label_wrap/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
+52.9 KB
...apshots.test.ts-snapshots/primer/beta/button/link_scheme_label_wrap/focused.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
8 changes: 8 additions & 0 deletions
8
previews/primer/beta/button_preview/link_scheme_label_wrap.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,8 @@ | ||
<div style="width: 200px;"> | ||
<%= render(Primer::Beta::Button.new( | ||
scheme: :link, | ||
size: :medium, | ||
)) do %> | ||
This is a button styled to look like a link that wraps like a link | ||
<% end %> | ||
</div> |