Skip to content

Fix SCSS code snippets errors in motion mixin and typography token #267

@Yashrajsingh2001

Description

@Yashrajsingh2001

Description:

Two errors were found in the .vscode/scss.code-snippets file that cause runtime errors when using Carbon Design System tokens:

Issues

  1. Line 220: Missing quotes in motion mixin

    • Current: @include motion(entrance, 'expressive')
    • Expected: @include motion('entrance', 'expressive')
    • The entrance parameter is missing quotes
  2. Line 328: Incorrect capitalization in typography token

    • Current: @include type-style('productive-Heading-02')
    • Expected: @include type-style('productive-heading-02')
    • The token name has incorrect capitalization (Heading should be heading)

Impact

Both issues cause runtime errors when the snippets are used, as Carbon Design System expects exact token names with consistent lowercase formatting and properly quoted parameters.

Solution

PR #266 fixes both issues to align with Carbon Design System standards.


Labels: bug, documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions