-
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.
Adapts Blankslate to render proportionally in narrow areas (#2337)
Co-authored-by: mperrotti <[email protected]>
- Loading branch information
Showing
21 changed files
with
75 additions
and
16 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,7 @@ | ||
--- | ||
"@primer/view-components": patch | ||
--- | ||
|
||
Adapts Blankslate to render proportionally in narrow areas | ||
|
||
<!-- Changed components: Blankslate --> |
Binary file modified
BIN
+779 Bytes
(100%)
...eenshots/snapshots.test.ts-snapshots/primer/beta/blankslate/default/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 modified
BIN
+779 Bytes
(100%)
...eenshots/snapshots.test.ts-snapshots/primer/beta/blankslate/default/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 modified
BIN
-4.51 KB
(96%)
...hots/snapshots.test.ts-snapshots/primer/beta/blankslate/description/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 modified
BIN
-4.51 KB
(96%)
...hots/snapshots.test.ts-snapshots/primer/beta/blankslate/description/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 modified
BIN
-4.55 KB
(97%)
...screenshots/snapshots.test.ts-snapshots/primer/beta/blankslate/full/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 modified
BIN
-4.49 KB
(97%)
...screenshots/snapshots.test.ts-snapshots/primer/beta/blankslate/full/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 modified
BIN
+9.58 KB
(110%)
...eenshots/snapshots.test.ts-snapshots/primer/beta/blankslate/loading/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 modified
BIN
+9.58 KB
(110%)
...eenshots/snapshots.test.ts-snapshots/primer/beta/blankslate/loading/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 modified
BIN
+736 Bytes
(100%)
...ts/snapshots.test.ts-snapshots/primer/beta/blankslate/option_border/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 modified
BIN
+736 Bytes
(100%)
...ts/snapshots.test.ts-snapshots/primer/beta/blankslate/option_border/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 modified
BIN
-10.8 KB
(88%)
...s/snapshots.test.ts-snapshots/primer/beta/blankslate/primary_action/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 modified
BIN
-10.8 KB
(88%)
...s/snapshots.test.ts-snapshots/primer/beta/blankslate/primary_action/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 modified
BIN
-10.6 KB
(88%)
...snapshots.test.ts-snapshots/primer/beta/blankslate/secondary_action/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 modified
BIN
-10.6 KB
(88%)
...snapshots.test.ts-snapshots/primer/beta/blankslate/secondary_action/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 modified
BIN
-10.6 KB
(88%)
...nshots/snapshots.test.ts-snapshots/primer/beta/blankslate/with_icon/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 modified
BIN
-10.6 KB
(88%)
...nshots/snapshots.test.ts-snapshots/primer/beta/blankslate/with_icon/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 modified
BIN
-9.24 KB
(92%)
...shots/snapshots.test.ts-snapshots/primer/beta/blankslate/with_image/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 modified
BIN
-9.24 KB
(92%)
...shots/snapshots.test.ts-snapshots/primer/beta/blankslate/with_image/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
<%= wrapper do %> | ||
<%= render Primer::BaseComponent.new(**@system_arguments) do %> | ||
<%= visual %> | ||
<div class="blankslate-container"> | ||
<%= render Primer::BaseComponent.new(**@system_arguments) do %> | ||
<%= visual %> | ||
|
||
<%= heading %> | ||
<%= description %> | ||
<%= heading %> | ||
<%= description %> | ||
|
||
<% if primary_action.present? %> | ||
<div class="blankslate-action"> | ||
<%= primary_action %> | ||
</div> | ||
<% if primary_action.present? %> | ||
<div class="blankslate-action"> | ||
<%= primary_action %> | ||
</div> | ||
<% end %> | ||
<% if secondary_action.present? %> | ||
<div class="blankslate-action"> | ||
<%= secondary_action %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
<% if secondary_action.present? %> | ||
<div class="blankslate-action"> | ||
<%= secondary_action %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% 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