Skip to content

Commit 5d6e909

Browse files
CopilotHiroAgustinprimer-css
authored
Add none gap option to Stack component (#3864)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: HiroAgustin <1458873+HiroAgustin@users.noreply.github.com> Co-authored-by: primer-css <primer-css@users.noreply.github.com>
1 parent 6971d77 commit 5d6e909

4 files changed

Lines changed: 8 additions & 2 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

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

static/arguments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2616,7 +2616,7 @@
26162616
"name": "gap",
26172617
"type": "Symbol",
26182618
"default": "`GapArg::DEFAULT`",
2619-
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
2619+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
26202620
},
26212621
{
26222622
"name": "direction",

static/info_arch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8079,7 +8079,7 @@
80798079
"name": "gap",
80808080
"type": "Symbol",
80818081
"default": "`GapArg::DEFAULT`",
8082-
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
8082+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
80838083
},
80848084
{
80858085
"name": "direction",

0 commit comments

Comments
 (0)