Skip to content

[bug]: Inconsistent spacing in same file #8809

@sebat2004

Description

@sebat2004

Describe the bug

Hi there. You guys have some pretty smelly code and ways to improve the code of this file.

Proposal

Image

The code above is one example of declaring a variable and using it in an if statement right after.

Image

This 2nd code snippet is another example of using a recently-declared variable for an if statement.

There are more examples across the whole repo. I propose that we have one way of doing this across the code base.

This PR is also open to fix that issue in this file.

Affected component/components

CSS utility function

How to reproduce

  1. Go to this file

  2. Navigate to lines - 523 and 527.

  3. You'll be able to see the different usages.

Codesandbox/StackBlitz link

No response

Logs

System Info

N/A

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions