Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more accurate about how brackets work with list.join() #633

Merged
merged 1 commit into from
May 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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