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

fix: test antd dark theme component #20012

Merged
merged 32 commits into from Dec 3, 2019
Merged

fix: test antd dark theme component #20012

merged 32 commits into from Dec 3, 2019

Conversation

ycjcl868
Copy link
Contributor

@ycjcl868 ycjcl868 commented Nov 29, 2019

only for dark component preview, not merge before removing [WIP]

Close #19971.

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@netlify
Copy link

netlify bot commented Nov 29, 2019

Deploy preview for ant-design ready!

Built with commit 4be9e9d

https://deploy-preview-20012--ant-design.netlify.com

@codecov
Copy link

codecov bot commented Nov 29, 2019

Codecov Report

Merging #20012 into 4.0-prepare will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           4.0-prepare   #20012      +/-   ##
===============================================
+ Coverage        97.56%   97.56%   +<.01%     
===============================================
  Files              294      294              
  Lines             7227     7231       +4     
  Branches          2001     2000       -1     
===============================================
+ Hits              7051     7055       +4     
  Misses             176      176
Impacted Files Coverage Δ
components/progress/progress.tsx 100% <ø> (ø) ⬆️
components/empty/simple.tsx 100% <100%> (ø) ⬆️
components/empty/empty.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d76283f...4be9e9d. Read the comment docs.

@ycjcl868 ycjcl868 changed the title fix: test antd dark theme component [WIP] fix: test antd dark theme component Nov 29, 2019
@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 29, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4be9e9d:

Sandbox Source
antd reproduction template Configuration

@ycjcl868 ycjcl868 changed the title [WIP] fix: test antd dark theme component fix: test antd dark theme component Dec 1, 2019
@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in d6f41db in #20012. cc @ant-design.

@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in 22aba08 in #20012. cc @ant-design.

@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in e2251f5 in #20012. cc @ant-design.

@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in dc90c21 in #20012. cc @ant-design.

@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in 53e663a in #20012. cc @ant-design.

@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in 0da761d in #20012. cc @ant-design.

@zombieJ
Copy link
Member

zombieJ commented Dec 3, 2019

简洁了很多👍

@todo
Copy link

todo bot commented Dec 3, 2019

use `@{ant-prefix}`

// TODO: use `@{ant-prefix}`
.default-empty-img {
// not support the definition because the less variables have no meaning
& when (@theme = dark) {
&-ellipse {
fill-opacity: 0.08;


This comment was generated by todo based on a TODO comment in d8ab994 in #20012. cc @ant-design.

@@ -49,7 +49,8 @@ export default class Progress extends React.Component<ProgressProps> {
type: 'line',
percent: 0,
showInfo: true,
trailColor: '#f3f3f3',
// null for different theme definition
trailColor: null,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zombieJ trailColor 传 null 目的是避免 rc-progress 使用 defaultProps ,将 trail color 加到 style 上。

@@ -5,7 +5,6 @@
@process-icon-color: @primary-color;
@process-title-color: @heading-color;
@process-description-color: @text-color;
@process-tail-color: @border-color-split;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put into default.less for theme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants