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

Invalid width property on notification message #8437

Closed
alekseychaikovsky opened this issue Dec 4, 2017 · 2 comments
Closed

Invalid width property on notification message #8437

alekseychaikovsky opened this issue Dec 4, 2017 · 2 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@alekseychaikovsky
Copy link

Version

3.0.0

Environment

all

Reproduction link

https://github.com/ant-design/ant-design/blob/master/components/notification/style/index.less#L47

Steps to reproduce

We are using postcss and also ant design. when upgrade to 3.0.0 antd.css produce invalid css causing postcss loader to crash.
The issue is with this line. https://github.com/ant-design/ant-design/blob/master/components/notification/style/index.less#L47
compiled css looks like
width: calc(384px - 16px 24px * 2 - 24px - 48px - 100%);

specifically this is not valid 16px 24px

example error message is

ERROR in ./node_modules/css-loader?{"sourceMap":true,"minimize":false}!./node_modules/postcss-loader/lib?{"config":{"path":"./tools/postcss.config.js"}}!./node_modules/antd/dist/antd.css
Module build failed: Parse error on line 1:
384px - 16px 24px * 2 - 24px - 48
-------------^
Expecting 'EOF', 'ADD', 'SUB', 'MUL', 'DIV', 'RPAREN', got 'LENGTH'

What is expected?

The width property is valid

What is actually happening?

The width property is not valid


Ran into this bug while upgrading to latest ant version (3.0.0)

@yesmeck yesmeck added the 🐛 Bug Ant Design Team had proved that this is a bug. label Dec 5, 2017
@mosaice
Copy link

mosaice commented Dec 5, 2017

same problem in my project
i try to import source less file ~antd/dist/antd.less but it failed

@ghost
Copy link

ghost commented Dec 6, 2017

The same problem !

@afc163 afc163 self-assigned this Dec 6, 2017
@afc163 afc163 closed this as completed in 0402e03 Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants