Skip to content

Commit

Permalink
Be more accurate about how brackets work with list.join() (sass#633)
Browse files Browse the repository at this point in the history
Closes sass#354
  • Loading branch information
Israel-4Ever committed May 27, 2022
1 parent f36359a commit 146182f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/documentation/modules/list.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ title: sass:list
`$list1` if it has a separator, or else `$list2` if it has a separator, or
else `space`. Other values aren't allowed.

If `$bracketed` is `true`, the returned list has square brackets. If it's
`false`, the returned list has no brackets. If it's `auto` (the default), the
returned list will be bracketed if `$list1` is. Other values aren't allowed.
If `$bracketed` is `auto` (the default), the returned list will be bracketed
if `$list1` is. Otherwise, the returned list will have square brackets if
`$bracketed` is [truthy] and no brackets if `$bracketed` is falsey.

[truthy]: /documentation/values/booleans#truthiness-and-falsiness

<% example(autogen_css: false) do %>
@debug list.join(10px 20px, 30px 40px); // 10px 20px 30px 40px
Expand Down

0 comments on commit 146182f

Please sign in to comment.