akveo / akveo/nebular

Strict Unary Operators

未关闭
#3,173 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

### Issue type

**I'm submitting a ...** (check one with "x")

* [x] bug report
* [ ] feature request

### Issue description

**Current behavior:**
Not 100% this is a bug, but after upgrading from 10 to 11, this warning showed up:

```
Deprecation This operation is parsed as:

"Nebular Theme: `nb-theme()` cannot find value for key `" + $key + "` for theme `" + theming-variables.$nb-theme-name + "`"

but you may have intended it to mean:

"Nebular Theme: `nb-theme()` cannot find value for key `" + $key + "` for theme `" + theming-variables.$nb-theme-name (+"`")

Add a space after + to clarify that it's meant to be a binary operation, or wrap
it in parentheses to make it a unary operation. This will be an error in future
versions of Sass.

More info and automated migrator: https://sass-lang.com/d/strict-unary

null

```

**Steps to reproduce:**
It seems to be triggered by theses kind of lines:
```
color: nb-theme(some-color-variable);
```

### Other information:

**npm, node, OS, Browser**
node: v16.18.0
npm: 8.19.2
OS: Ubuntu 22.04.1 LTS

**Angular, Nebular**
```
"@angular/core": "15.0.0",
"@nebular/date-fns": "11.0.0",
"@nebular/theme": "11.0.0",
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。