Skip to content

Commit 7d2e5c8

Browse files
authored
Merge branch 'main' into llastflowers/14774/region-label-sr-announcement-fix
2 parents 6cf3b14 + e6170d0 commit 7d2e5c8

15 files changed

Lines changed: 96 additions & 66 deletions

File tree

.changeset/add-stack-none-gap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": minor
3+
---
4+
5+
Add `none` gap option to Stack component for parity with Primer React

.changeset/seven-papayas-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/view-components': patch
3+
---
4+
5+
Fixed SelectPanel multiselect accessibility: Use `aria-selected` instead of `aria-checked` for listbox option items.

.changeset/sharp-jokes-push.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Make link distinguishable from surrounding text with underline styling

.changeset/spicy-jars-sparkle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Add SR announcement in Summary As Button story

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ GEM
144144
mini_mime (1.1.5)
145145
mini_portile2 (2.8.9)
146146
minitest (5.27.0)
147-
mocha (2.7.1)
147+
mocha (3.0.1)
148148
ruby2_keywords (>= 0.0.5)
149149
msgpack (1.8.0)
150150
mutex_m (0.3.0)
@@ -156,13 +156,13 @@ GEM
156156
racc (~> 1.4)
157157
octicons (19.21.1)
158158
parallel (1.27.0)
159-
parser (3.3.10.0)
159+
parser (3.3.10.1)
160160
ast (~> 2.4.1)
161161
racc
162162
pp (0.6.3)
163163
prettyprint
164164
prettyprint (0.2.0)
165-
prism (1.7.0)
165+
prism (1.8.0)
166166
psych (5.3.1)
167167
date
168168
stringio
@@ -213,15 +213,15 @@ GEM
213213
io-console (~> 0.5)
214214
rexml (3.4.4)
215215
rouge (4.6.1)
216-
rubocop (1.81.1)
216+
rubocop (1.82.1)
217217
json (~> 2.3)
218218
language_server-protocol (~> 3.17.0.2)
219219
lint_roller (~> 1.1.0)
220220
parallel (~> 1.10)
221221
parser (>= 3.3.0.2)
222222
rainbow (>= 2.2.2, < 4.0)
223223
regexp_parser (>= 2.9.3, < 3.0)
224-
rubocop-ast (>= 1.47.1, < 2.0)
224+
rubocop-ast (>= 1.48.0, < 2.0)
225225
ruby-progressbar (~> 1.7)
226226
unicode-display_width (>= 2.4.0, < 4.0)
227227
rubocop-ast (1.49.0)

app/components/primer/alpha/select_panel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def initialize(**system_arguments)
256256
super(
257257
p: 2,
258258
role: "listbox",
259-
aria_selection_variant: select_variant == :single ? :selected : :checked,
259+
aria_selection_variant: :selected,
260260
select_variant: select_variant == :multiple ? :multiple_checkbox : :single,
261261
**system_arguments
262262
)

app/components/primer/alpha/select_panel_element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class SelectPanelElement extends HTMLElement {
9797
}
9898

9999
get ariaSelectionType(): string {
100-
return this.selectVariant === 'multiple' ? 'aria-checked' : 'aria-selected'
100+
return 'aria-selected'
101101
}
102102

103103
set selectVariant(variant: SelectVariant) {

app/components/primer/alpha/stack.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class GapArg < Primer::ResponsiveArg
117117
DEFAULT = nil
118118
OPTIONS = [
119119
DEFAULT,
120+
:none,
120121
:condensed,
121122
:normal,
122123
:spacious
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<% if scenarios.many? %>
2+
<% scenarios = scenarios.filter(&:visible?) %>
3+
<%# Render a group of scenarios %>
4+
<% scenarios.each do |scenario| %>
5+
<div style="margin-bottom: 30px !important; display: block !important;">
6+
<h6 class="color-fg-muted" style="all: unset; display: block; font-family: sans-serif; font-size: 14px; margin-top: 0; margin-bottom: 10px;">
7+
<%= scenario.label %>
8+
</h6>
9+
<%= scenario.output %>
10+
</div>
11+
<% end %>
12+
<% else %>
13+
<%# Render a single scenario %>
14+
<%= scenarios.first.output %>
15+
<% end %>

package-lock.json

Lines changed: 13 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)