primer_view_components 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/form_wrapper.rb +5 -0
- data/app/components/primer/alpha/button_marketing.rb +2 -0
- data/app/components/primer/alpha/dialog/header.html.erb +3 -0
- data/app/components/primer/alpha/dialog/header.rb +26 -0
- data/app/components/primer/alpha/overlay/header.html.erb +3 -1
- data/app/components/primer/alpha/overlay/header.rb +15 -0
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.json +2 -0
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/tab_nav.pcss +10 -0
- data/app/components/primer/alpha/tab_panels.html.erb +5 -9
- data/app/components/primer/alpha/tab_panels.rb +4 -13
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.json +2 -0
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/underline_nav.pcss +7 -1
- data/app/components/primer/alpha/underline_panels.css +1 -0
- data/app/components/primer/alpha/underline_panels.css.json +6 -0
- data/app/components/primer/alpha/underline_panels.css.map +1 -0
- data/app/components/primer/alpha/underline_panels.html.erb +6 -8
- data/app/components/primer/alpha/underline_panels.pcss +4 -0
- data/app/components/primer/alpha/underline_panels.rb +6 -14
- data/app/components/primer/anchored_position.js +2 -0
- data/app/components/primer/anchored_position.ts +2 -0
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.html.erb +6 -1
- data/app/components/primer/beta/button.pcss +1 -0
- data/app/components/primer/beta/button.rb +9 -1
- data/app/components/primer/primer.pcss +1 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/button_marketing_preview.rb +15 -3
- data/previews/primer/alpha/dialog_preview/with_header_filter.html.erb +19 -0
- data/previews/primer/alpha/dialog_preview.rb +4 -0
- data/previews/primer/alpha/overlay_preview/in_a_sticky_container.html.erb +19 -0
- data/previews/primer/alpha/overlay_preview.rb +15 -0
- data/previews/primer/beta/button_group_preview.rb +3 -7
- data/previews/primer/beta/button_preview/small_scheme_one_character.html.erb +5 -0
- data/previews/primer/beta/button_preview/summary_as_button.html.erb +14 -0
- data/previews/primer/beta/button_preview.rb +42 -12
- data/static/arguments.json +0 -12
- data/static/info_arch.json +118 -17
- data/static/previews.json +80 -2
- metadata +10 -2
@@ -10,19 +10,31 @@ module Primer
|
|
10
10
|
# @param tag [Symbol] select [button, a]
|
11
11
|
# @param type [Symbol] select [button, submit]
|
12
12
|
# @param disabled [Boolean]
|
13
|
-
def playground(tag: :button, type: :button, scheme: :default, variant: :default, disabled: false)
|
14
|
-
|
13
|
+
def playground(tag: :button, type: :button, scheme: :default, variant: :default, disabled: false, href: nil)
|
14
|
+
# Sets default href to `a`, to ensure it's keyboard interactive and proper markup
|
15
|
+
if tag == :a && href.nil?
|
16
|
+
href = "#"
|
17
|
+
end
|
18
|
+
render(Primer::Alpha::ButtonMarketing.new(tag: tag, type: type, scheme: scheme, variant: variant, disabled: disabled, href: href)) { "Default" }
|
15
19
|
end
|
16
20
|
|
17
21
|
# @label Default options
|
18
22
|
# @param scheme [Symbol] select [default, primary, outline, transparent]
|
19
23
|
# @param variant [Symbol] select [default, large]
|
20
|
-
# @param tag [Symbol] select [button, a]
|
21
24
|
# @param type [Symbol] select [button, submit]
|
22
25
|
def default(tag: :button, type: :button, scheme: :default, variant: :default)
|
23
26
|
render(Primer::Alpha::ButtonMarketing.new(tag: tag, type: type, scheme: scheme, variant: variant)) { "Default" }
|
24
27
|
end
|
25
28
|
|
29
|
+
# @label Link as button options
|
30
|
+
# @param scheme [Symbol] select [default, primary, outline, transparent]
|
31
|
+
# @param variant [Symbol] select [default, large]
|
32
|
+
# @param type [Symbol] select [button, submit]
|
33
|
+
# @param href [String]
|
34
|
+
def link_as_button(tag: :a, href: "#", type: :button, scheme: :default, variant: :default)
|
35
|
+
render(Primer::Alpha::ButtonMarketing.new(tag: tag, href: href, type: type, scheme: scheme, variant: variant)) { "Default" }
|
36
|
+
end
|
37
|
+
|
26
38
|
# @!group Size Variants
|
27
39
|
# @snapshot
|
28
40
|
#
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<%= render(Primer::Alpha::Dialog.new(open: true, title: "Dialog")) do |dialog| %>
|
2
|
+
<% dialog.with_show_button { "Open" } %>
|
3
|
+
<% dialog.with_header do |header| %>
|
4
|
+
<% header.with_filter(pr: 3, pl: 3) do %>
|
5
|
+
<%= render Primer::Alpha::TextField.new(
|
6
|
+
autofocus: true,
|
7
|
+
visually_hide_label: true,
|
8
|
+
name: "filter",
|
9
|
+
label: "Filter dialog",
|
10
|
+
) %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
<% dialog.with_body do %>
|
14
|
+
Body
|
15
|
+
<% end %>
|
16
|
+
<% dialog.with_footer do %>
|
17
|
+
Footer
|
18
|
+
<% end %>
|
19
|
+
<% end %>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div style="position:sticky;top:0;" class="color-bg-accent">
|
2
|
+
<%= render(Primer::Alpha::Overlay.new(title: "Dialog", role: :dialog, size: :large, padding: :condensed)) do |d| %>
|
3
|
+
<% d.with_header(title: "Large Dialog Header", divider: true) do |header| %>
|
4
|
+
<% header.with_filter do %>
|
5
|
+
<%= render Primer::Alpha::TextField.new(
|
6
|
+
autofocus: true,
|
7
|
+
visually_hide_label:
|
8
|
+
true,
|
9
|
+
name: "filter",
|
10
|
+
label: "Filter Overlay"
|
11
|
+
) %>
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
14
|
+
<% d.with_show_button { "Show Overlay" } %>
|
15
|
+
<% d.with_footer { "Large Dialog Footer" } %>
|
16
|
+
<% d.with_body { "This is a long body for the overlay dialog. <br>".html_safe * 20 } %>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
<div style="height:3000px;"></div>
|
@@ -183,6 +183,21 @@ module Primer
|
|
183
183
|
def overlay_with_header_filter
|
184
184
|
render_with_template(locals: {})
|
185
185
|
end
|
186
|
+
|
187
|
+
def overlay_with_header_subtitle
|
188
|
+
render(Primer::Alpha::Overlay.new(title: "Dialog", role: :dialog, size: :large, padding: :condensed)) do |d|
|
189
|
+
d.with_header(title: "Large Dialog Header", divider: true) do |h|
|
190
|
+
h.with_subtitle {"A subtitle"}
|
191
|
+
end
|
192
|
+
d.with_show_button { "Show Overlay" }
|
193
|
+
d.with_footer { "Large Dialog Footer" }
|
194
|
+
d.with_body { "This is a long body for the overlay dialog. <br>".html_safe * 20 }
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
def in_a_sticky_container
|
199
|
+
render_with_template(locals: {})
|
200
|
+
end
|
186
201
|
end
|
187
202
|
end
|
188
203
|
end
|
@@ -63,22 +63,18 @@ module Primer
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
# @label Button group with
|
66
|
+
# @label Button group with multiple tags
|
67
67
|
# @snapshot
|
68
|
-
def
|
68
|
+
def multiple_tags
|
69
69
|
render(Primer::Beta::ButtonGroup.new) do |component|
|
70
70
|
component.with_button(id: "button-1", tag: :button) do |button|
|
71
71
|
button.with_tooltip(text: "Button Tooltip")
|
72
72
|
"Button 1"
|
73
73
|
end
|
74
|
-
component.with_button(id: "button-2", tag: :a) do |button|
|
74
|
+
component.with_button(id: "button-2", tag: :a, href: "#") do |button|
|
75
75
|
button.with_tooltip(text: "Button Tooltip")
|
76
76
|
"Button 2"
|
77
77
|
end
|
78
|
-
component.with_button(id: "button-3", tag: :summary) do |button|
|
79
|
-
button.with_tooltip(text: "Button Tooltip")
|
80
|
-
"Button 3"
|
81
|
-
end
|
82
78
|
end
|
83
79
|
end
|
84
80
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<details>
|
2
|
+
<%= render(Primer::Beta::Button.new(
|
3
|
+
scheme: scheme,
|
4
|
+
size: size,
|
5
|
+
block: block,
|
6
|
+
id: id,
|
7
|
+
align_content: align_content,
|
8
|
+
tag: tag
|
9
|
+
)) do %>
|
10
|
+
Button
|
11
|
+
<% end %>
|
12
|
+
<p>A wrapping `details` tag is required when using the button with the `:summary` tag</p>
|
13
|
+
</details>
|
14
|
+
|
@@ -20,7 +20,7 @@ module Primer
|
|
20
20
|
# @param disabled toggle
|
21
21
|
# @param inactive toggle
|
22
22
|
# @param align_content select [center, start]
|
23
|
-
# @param tag select [a,
|
23
|
+
# @param tag select [a, button]
|
24
24
|
# @param label_wrap toggle
|
25
25
|
def playground(
|
26
26
|
scheme: :default,
|
@@ -31,8 +31,13 @@ module Primer
|
|
31
31
|
tag: :button,
|
32
32
|
disabled: false,
|
33
33
|
inactive: false,
|
34
|
-
label_wrap: false
|
34
|
+
label_wrap: false,
|
35
|
+
href: nil
|
35
36
|
)
|
37
|
+
# Sets default href to `a`, to ensure it's keyboard interactive and proper markup
|
38
|
+
if tag == :a && href.nil?
|
39
|
+
href = "#"
|
40
|
+
end
|
36
41
|
render(Primer::Beta::Button.new(
|
37
42
|
scheme: scheme,
|
38
43
|
size: size,
|
@@ -42,8 +47,9 @@ module Primer
|
|
42
47
|
tag: tag,
|
43
48
|
disabled: disabled,
|
44
49
|
inactive: inactive,
|
45
|
-
label_wrap: label_wrap
|
46
|
-
|
50
|
+
label_wrap: label_wrap,
|
51
|
+
href: href
|
52
|
+
)) do |_c|
|
47
53
|
"Button"
|
48
54
|
end
|
49
55
|
end
|
@@ -51,7 +57,6 @@ module Primer
|
|
51
57
|
# @label Default
|
52
58
|
# @param block toggle
|
53
59
|
# @param disabled toggle
|
54
|
-
# @param tag select [a, summary, button]
|
55
60
|
def default(
|
56
61
|
block: false,
|
57
62
|
id: "button-preview",
|
@@ -73,7 +78,6 @@ module Primer
|
|
73
78
|
# @label Primary
|
74
79
|
# @param block toggle
|
75
80
|
# @param disabled toggle
|
76
|
-
# @param tag select [a, summary, button]
|
77
81
|
def primary(
|
78
82
|
id: "button-preview",
|
79
83
|
block: false,
|
@@ -95,7 +99,6 @@ module Primer
|
|
95
99
|
# @label Danger
|
96
100
|
# @param block toggle
|
97
101
|
# @param disabled toggle
|
98
|
-
# @param tag select [a, summary, button]
|
99
102
|
def danger(
|
100
103
|
id: "button-preview",
|
101
104
|
block: false,
|
@@ -117,7 +120,6 @@ module Primer
|
|
117
120
|
# @label Invisible
|
118
121
|
# @param block toggle
|
119
122
|
# @param disabled toggle
|
120
|
-
# @param tag select [a, summary, button]
|
121
123
|
def invisible(
|
122
124
|
id: "button-preview",
|
123
125
|
block: false,
|
@@ -145,7 +147,6 @@ module Primer
|
|
145
147
|
# @label Link
|
146
148
|
# @param block toggle
|
147
149
|
# @param disabled toggle
|
148
|
-
# @param tag select [a, summary, button]
|
149
150
|
# @snapshot
|
150
151
|
def link(
|
151
152
|
id: "button-preview",
|
@@ -178,7 +179,6 @@ module Primer
|
|
178
179
|
|
179
180
|
# @label Full width
|
180
181
|
# @param disabled toggle
|
181
|
-
# @param tag select [a, summary, button]
|
182
182
|
# @snapshot
|
183
183
|
def full_width(
|
184
184
|
id: "button-preview",
|
@@ -222,6 +222,7 @@ module Primer
|
|
222
222
|
# @param size select [small, medium]
|
223
223
|
# @param block toggle
|
224
224
|
# @param align_content select [center, start]
|
225
|
+
# @param href
|
225
226
|
# @snapshot
|
226
227
|
def link_as_button(
|
227
228
|
scheme: :default,
|
@@ -245,12 +246,35 @@ module Primer
|
|
245
246
|
end
|
246
247
|
end
|
247
248
|
|
249
|
+
# @label Summary as button
|
250
|
+
# @param scheme select [default, primary, danger, invisible, link]
|
251
|
+
# @param size select [small, medium]
|
252
|
+
# @param block toggle
|
253
|
+
# @param align_content select [center, start]
|
254
|
+
# @snapshot
|
255
|
+
def summary_as_button(
|
256
|
+
scheme: :default,
|
257
|
+
size: :medium,
|
258
|
+
block: false,
|
259
|
+
id: "button-preview",
|
260
|
+
align_content: :center,
|
261
|
+
tag: :summary
|
262
|
+
)
|
263
|
+
render_with_template(locals: {
|
264
|
+
scheme: scheme,
|
265
|
+
size: size,
|
266
|
+
block: block,
|
267
|
+
id: id,
|
268
|
+
align_content: align_content,
|
269
|
+
tag: tag
|
270
|
+
})
|
271
|
+
end
|
272
|
+
|
248
273
|
# @label Trailing visual
|
249
274
|
# @param scheme select [default, primary, danger, invisible, link]
|
250
275
|
# @param size select [small, medium]
|
251
276
|
# @param block toggle
|
252
277
|
# @param align_content select [center, start]
|
253
|
-
# @param tag select [a, summary, button]
|
254
278
|
# @snapshot
|
255
279
|
def trailing_visual(
|
256
280
|
scheme: :default,
|
@@ -258,7 +282,7 @@ module Primer
|
|
258
282
|
block: false,
|
259
283
|
id: "button-preview",
|
260
284
|
align_content: :center,
|
261
|
-
tag: :
|
285
|
+
tag: :button
|
262
286
|
)
|
263
287
|
render_with_template(locals: {
|
264
288
|
scheme: scheme,
|
@@ -390,6 +414,12 @@ module Primer
|
|
390
414
|
def link_scheme_label_wrap
|
391
415
|
render_with_template(locals: {})
|
392
416
|
end
|
417
|
+
|
418
|
+
# @label Small scheme with one character
|
419
|
+
# @snapshot
|
420
|
+
def small_scheme_one_character
|
421
|
+
render_with_template(locals: {})
|
422
|
+
end
|
393
423
|
end
|
394
424
|
end
|
395
425
|
end
|
data/static/arguments.json
CHANGED
@@ -2462,18 +2462,6 @@
|
|
2462
2462
|
"default": "N/A",
|
2463
2463
|
"description": "One of `:left` or `:right`. - Defaults to left"
|
2464
2464
|
},
|
2465
|
-
{
|
2466
|
-
"name": "body_arguments",
|
2467
|
-
"type": "Hash",
|
2468
|
-
"default": "`{}`",
|
2469
|
-
"description": "[System arguments](/system-arguments) for the body wrapper."
|
2470
|
-
},
|
2471
|
-
{
|
2472
|
-
"name": "wrapper_arguments",
|
2473
|
-
"type": "Hash",
|
2474
|
-
"default": "`{}`",
|
2475
|
-
"description": "[System arguments](/system-arguments) for the `TabContainer` wrapper."
|
2476
|
-
},
|
2477
2465
|
{
|
2478
2466
|
"name": "system_arguments",
|
2479
2467
|
"type": "Hash",
|
data/static/info_arch.json
CHANGED
@@ -2514,7 +2514,7 @@
|
|
2514
2514
|
{
|
2515
2515
|
"fully_qualified_name": "Primer::Alpha::ButtonMarketing",
|
2516
2516
|
"description": "Use `ButtonMarketing` for actions (e.g. in forms). Use links for destinations, or moving from one page to another.",
|
2517
|
-
"accessibility_docs":
|
2517
|
+
"accessibility_docs": "Setting the tag argument to `:a` requires you to pass in an `href` attribute.",
|
2518
2518
|
"is_form_component": false,
|
2519
2519
|
"is_published": true,
|
2520
2520
|
"requires_js": false,
|
@@ -2595,6 +2595,19 @@
|
|
2595
2595
|
]
|
2596
2596
|
}
|
2597
2597
|
},
|
2598
|
+
{
|
2599
|
+
"preview_path": "primer/alpha/button_marketing/link_as_button",
|
2600
|
+
"name": "link_as_button",
|
2601
|
+
"snapshot": "false",
|
2602
|
+
"skip_rules": {
|
2603
|
+
"wont_fix": [
|
2604
|
+
"region"
|
2605
|
+
],
|
2606
|
+
"will_fix": [
|
2607
|
+
"color-contrast"
|
2608
|
+
]
|
2609
|
+
}
|
2610
|
+
},
|
2598
2611
|
{
|
2599
2612
|
"preview_path": "primer/alpha/button_marketing/sizes_default",
|
2600
2613
|
"name": "sizes_default",
|
@@ -3453,6 +3466,19 @@
|
|
3453
3466
|
"color-contrast"
|
3454
3467
|
]
|
3455
3468
|
}
|
3469
|
+
},
|
3470
|
+
{
|
3471
|
+
"preview_path": "primer/alpha/dialog/with_header_filter",
|
3472
|
+
"name": "with_header_filter",
|
3473
|
+
"snapshot": "false",
|
3474
|
+
"skip_rules": {
|
3475
|
+
"wont_fix": [
|
3476
|
+
"region"
|
3477
|
+
],
|
3478
|
+
"will_fix": [
|
3479
|
+
"color-contrast"
|
3480
|
+
]
|
3481
|
+
}
|
3456
3482
|
}
|
3457
3483
|
],
|
3458
3484
|
"subcomponents": [
|
@@ -3514,7 +3540,30 @@
|
|
3514
3540
|
}
|
3515
3541
|
],
|
3516
3542
|
"slots": [
|
3517
|
-
|
3543
|
+
{
|
3544
|
+
"name": "filter",
|
3545
|
+
"description": "Optional filter slot for adding a filter input to the header.",
|
3546
|
+
"parameters": [
|
3547
|
+
{
|
3548
|
+
"name": "system_arguments",
|
3549
|
+
"type": "Hash",
|
3550
|
+
"default": "N/A",
|
3551
|
+
"description": "{{link_to_system_arguments_docs}}"
|
3552
|
+
}
|
3553
|
+
]
|
3554
|
+
},
|
3555
|
+
{
|
3556
|
+
"name": "subtitle",
|
3557
|
+
"description": "Optional subtitle slot for adding a subtitle to the header.",
|
3558
|
+
"parameters": [
|
3559
|
+
{
|
3560
|
+
"name": "system_arguments",
|
3561
|
+
"type": "Hash",
|
3562
|
+
"default": "N/A",
|
3563
|
+
"description": "{{link_to_system_arguments_docs}}"
|
3564
|
+
}
|
3565
|
+
]
|
3566
|
+
}
|
3518
3567
|
],
|
3519
3568
|
"methods": [
|
3520
3569
|
|
@@ -6094,6 +6143,32 @@
|
|
6094
6143
|
"color-contrast"
|
6095
6144
|
]
|
6096
6145
|
}
|
6146
|
+
},
|
6147
|
+
{
|
6148
|
+
"preview_path": "primer/alpha/overlay/overlay_with_header_subtitle",
|
6149
|
+
"name": "overlay_with_header_subtitle",
|
6150
|
+
"snapshot": "false",
|
6151
|
+
"skip_rules": {
|
6152
|
+
"wont_fix": [
|
6153
|
+
"region"
|
6154
|
+
],
|
6155
|
+
"will_fix": [
|
6156
|
+
"color-contrast"
|
6157
|
+
]
|
6158
|
+
}
|
6159
|
+
},
|
6160
|
+
{
|
6161
|
+
"preview_path": "primer/alpha/overlay/in_a_sticky_container",
|
6162
|
+
"name": "in_a_sticky_container",
|
6163
|
+
"snapshot": "false",
|
6164
|
+
"skip_rules": {
|
6165
|
+
"wont_fix": [
|
6166
|
+
"region"
|
6167
|
+
],
|
6168
|
+
"will_fix": [
|
6169
|
+
"color-contrast"
|
6170
|
+
]
|
6171
|
+
}
|
6097
6172
|
}
|
6098
6173
|
],
|
6099
6174
|
"subcomponents": [
|
@@ -6166,6 +6241,18 @@
|
|
6166
6241
|
"description": "{{link_to_system_arguments_docs}}"
|
6167
6242
|
}
|
6168
6243
|
]
|
6244
|
+
},
|
6245
|
+
{
|
6246
|
+
"name": "subtitle",
|
6247
|
+
"description": "Optional subtitle slot for adding a subtitle to the header.",
|
6248
|
+
"parameters": [
|
6249
|
+
{
|
6250
|
+
"name": "system_arguments",
|
6251
|
+
"type": "Hash",
|
6252
|
+
"default": "N/A",
|
6253
|
+
"description": "{{link_to_system_arguments_docs}}"
|
6254
|
+
}
|
6255
|
+
]
|
6169
6256
|
}
|
6170
6257
|
],
|
6171
6258
|
"methods": [
|
@@ -7541,18 +7628,6 @@
|
|
7541
7628
|
"default": "N/A",
|
7542
7629
|
"description": "One of `:left` or `:right`. - Defaults to left"
|
7543
7630
|
},
|
7544
|
-
{
|
7545
|
-
"name": "body_arguments",
|
7546
|
-
"type": "Hash",
|
7547
|
-
"default": "`{}`",
|
7548
|
-
"description": "{{link_to_system_arguments_docs}} for the body wrapper."
|
7549
|
-
},
|
7550
|
-
{
|
7551
|
-
"name": "wrapper_arguments",
|
7552
|
-
"type": "Hash",
|
7553
|
-
"default": "`{}`",
|
7554
|
-
"description": "{{link_to_system_arguments_docs}} for the `TabContainer` wrapper."
|
7555
|
-
},
|
7556
7631
|
{
|
7557
7632
|
"name": "system_arguments",
|
7558
7633
|
"type": "Hash",
|
@@ -10908,7 +10983,7 @@
|
|
10908
10983
|
{
|
10909
10984
|
"fully_qualified_name": "Primer::Beta::Button",
|
10910
10985
|
"description": "Use `Button` for actions (e.g. in forms). Use links for destinations, or moving from one page to another.",
|
10911
|
-
"accessibility_docs":
|
10986
|
+
"accessibility_docs": "Additional markup is required if setting the `tag` argument to either `:a` or `:summary`.\n\n* `:a` requires you to pass in an `href` attribute\n* `:summary` requires you to wrap the component in a `<details>` element",
|
10912
10987
|
"is_form_component": false,
|
10913
10988
|
"is_published": true,
|
10914
10989
|
"requires_js": false,
|
@@ -11183,6 +11258,19 @@
|
|
11183
11258
|
]
|
11184
11259
|
}
|
11185
11260
|
},
|
11261
|
+
{
|
11262
|
+
"preview_path": "primer/beta/button/summary_as_button",
|
11263
|
+
"name": "summary_as_button",
|
11264
|
+
"snapshot": "true",
|
11265
|
+
"skip_rules": {
|
11266
|
+
"wont_fix": [
|
11267
|
+
"region"
|
11268
|
+
],
|
11269
|
+
"will_fix": [
|
11270
|
+
"color-contrast"
|
11271
|
+
]
|
11272
|
+
}
|
11273
|
+
},
|
11186
11274
|
{
|
11187
11275
|
"preview_path": "primer/beta/button/trailing_visual",
|
11188
11276
|
"name": "trailing_visual",
|
@@ -11286,6 +11374,19 @@
|
|
11286
11374
|
"color-contrast"
|
11287
11375
|
]
|
11288
11376
|
}
|
11377
|
+
},
|
11378
|
+
{
|
11379
|
+
"preview_path": "primer/beta/button/small_scheme_one_character",
|
11380
|
+
"name": "small_scheme_one_character",
|
11381
|
+
"snapshot": "true",
|
11382
|
+
"skip_rules": {
|
11383
|
+
"wont_fix": [
|
11384
|
+
"region"
|
11385
|
+
],
|
11386
|
+
"will_fix": [
|
11387
|
+
"color-contrast"
|
11388
|
+
]
|
11389
|
+
}
|
11289
11390
|
}
|
11290
11391
|
],
|
11291
11392
|
"subcomponents": [
|
@@ -11445,8 +11546,8 @@
|
|
11445
11546
|
}
|
11446
11547
|
},
|
11447
11548
|
{
|
11448
|
-
"preview_path": "primer/beta/button_group/
|
11449
|
-
"name": "
|
11549
|
+
"preview_path": "primer/beta/button_group/multiple_tags",
|
11550
|
+
"name": "multiple_tags",
|
11450
11551
|
"snapshot": "true",
|
11451
11552
|
"skip_rules": {
|
11452
11553
|
"wont_fix": [
|
data/static/previews.json
CHANGED
@@ -2163,6 +2163,19 @@
|
|
2163
2163
|
]
|
2164
2164
|
}
|
2165
2165
|
},
|
2166
|
+
{
|
2167
|
+
"preview_path": "primer/beta/button/summary_as_button",
|
2168
|
+
"name": "summary_as_button",
|
2169
|
+
"snapshot": "true",
|
2170
|
+
"skip_rules": {
|
2171
|
+
"wont_fix": [
|
2172
|
+
"region"
|
2173
|
+
],
|
2174
|
+
"will_fix": [
|
2175
|
+
"color-contrast"
|
2176
|
+
]
|
2177
|
+
}
|
2178
|
+
},
|
2166
2179
|
{
|
2167
2180
|
"preview_path": "primer/beta/button/trailing_visual",
|
2168
2181
|
"name": "trailing_visual",
|
@@ -2266,6 +2279,19 @@
|
|
2266
2279
|
"color-contrast"
|
2267
2280
|
]
|
2268
2281
|
}
|
2282
|
+
},
|
2283
|
+
{
|
2284
|
+
"preview_path": "primer/beta/button/small_scheme_one_character",
|
2285
|
+
"name": "small_scheme_one_character",
|
2286
|
+
"snapshot": "true",
|
2287
|
+
"skip_rules": {
|
2288
|
+
"wont_fix": [
|
2289
|
+
"region"
|
2290
|
+
],
|
2291
|
+
"will_fix": [
|
2292
|
+
"color-contrast"
|
2293
|
+
]
|
2294
|
+
}
|
2269
2295
|
}
|
2270
2296
|
]
|
2271
2297
|
},
|
@@ -2341,8 +2367,8 @@
|
|
2341
2367
|
}
|
2342
2368
|
},
|
2343
2369
|
{
|
2344
|
-
"preview_path": "primer/beta/button_group/
|
2345
|
-
"name": "
|
2370
|
+
"preview_path": "primer/beta/button_group/multiple_tags",
|
2371
|
+
"name": "multiple_tags",
|
2346
2372
|
"snapshot": "true",
|
2347
2373
|
"skip_rules": {
|
2348
2374
|
"wont_fix": [
|
@@ -2400,6 +2426,19 @@
|
|
2400
2426
|
]
|
2401
2427
|
}
|
2402
2428
|
},
|
2429
|
+
{
|
2430
|
+
"preview_path": "primer/alpha/button_marketing/link_as_button",
|
2431
|
+
"name": "link_as_button",
|
2432
|
+
"snapshot": "false",
|
2433
|
+
"skip_rules": {
|
2434
|
+
"wont_fix": [
|
2435
|
+
"region"
|
2436
|
+
],
|
2437
|
+
"will_fix": [
|
2438
|
+
"color-contrast"
|
2439
|
+
]
|
2440
|
+
}
|
2441
|
+
},
|
2403
2442
|
{
|
2404
2443
|
"preview_path": "primer/alpha/button_marketing/sizes_default",
|
2405
2444
|
"name": "sizes_default",
|
@@ -3256,6 +3295,19 @@
|
|
3256
3295
|
"color-contrast"
|
3257
3296
|
]
|
3258
3297
|
}
|
3298
|
+
},
|
3299
|
+
{
|
3300
|
+
"preview_path": "primer/alpha/dialog/with_header_filter",
|
3301
|
+
"name": "with_header_filter",
|
3302
|
+
"snapshot": "false",
|
3303
|
+
"skip_rules": {
|
3304
|
+
"wont_fix": [
|
3305
|
+
"region"
|
3306
|
+
],
|
3307
|
+
"will_fix": [
|
3308
|
+
"color-contrast"
|
3309
|
+
]
|
3310
|
+
}
|
3259
3311
|
}
|
3260
3312
|
]
|
3261
3313
|
},
|
@@ -4926,6 +4978,32 @@
|
|
4926
4978
|
"color-contrast"
|
4927
4979
|
]
|
4928
4980
|
}
|
4981
|
+
},
|
4982
|
+
{
|
4983
|
+
"preview_path": "primer/alpha/overlay/overlay_with_header_subtitle",
|
4984
|
+
"name": "overlay_with_header_subtitle",
|
4985
|
+
"snapshot": "false",
|
4986
|
+
"skip_rules": {
|
4987
|
+
"wont_fix": [
|
4988
|
+
"region"
|
4989
|
+
],
|
4990
|
+
"will_fix": [
|
4991
|
+
"color-contrast"
|
4992
|
+
]
|
4993
|
+
}
|
4994
|
+
},
|
4995
|
+
{
|
4996
|
+
"preview_path": "primer/alpha/overlay/in_a_sticky_container",
|
4997
|
+
"name": "in_a_sticky_container",
|
4998
|
+
"snapshot": "false",
|
4999
|
+
"skip_rules": {
|
5000
|
+
"wont_fix": [
|
5001
|
+
"region"
|
5002
|
+
],
|
5003
|
+
"will_fix": [
|
5004
|
+
"color-contrast"
|
5005
|
+
]
|
5006
|
+
}
|
4929
5007
|
}
|
4930
5008
|
]
|
4931
5009
|
},
|