Skip to content

Incorrect wording. Please correct. #4330

Open

Description

@Bahurtsev

On the page: https://lesscss.org/features/#mixins-feature-mixins-parametric-feature

Line: "Note: As of Less 4.0, you can escape a list value using bracket escaping [~()]". Is misleading. Please remove the brackets or change the text to read: "As of Less 4.0, you can escape a list value by enclosing it in a tilde and brackets ~()".

Activity

  1. Shivang9983 commented on Aug 3, 2026

    @Shivang9983

    Hi @Bahurtsev and Less.js maintainers,

    The point raised here is valid. The current wording, “paren escape [ ~() ]”, can be misleading because the actual syntax uses a tilde followed by parentheses, ~(), rather than brackets.

    I’d be happy to fix this typo in the documentation. Here’s my proposed change:

    Current:
    “Note: As of Less 4.0, you can wrap a list value using a paren escape [ ~() ], e.g. .name(@param1: ~(red, blue)).”

    Proposed:
    “Note: As of Less 4.0, you can wrap a list value using a tilde and parentheses ~(), e.g. .name(@param1: ~(red, blue)).”

    If this looks good, I’d be happy to open a PR in less/less-docs with the fix.

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions