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

site: update docs styles #39348

Merged
merged 4 commits into from
Dec 7, 2022

Conversation

Wxh16144
Copy link
Member

@Wxh16144 Wxh16144 commented Dec 7, 2022

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

ref: #38463 (comment)

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English -
🇨🇳 Chinese -

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • 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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

typeof record.value === 'string' &&
(record.value.startsWith('#') || record.value.startsWith('rgb'));
if (isColor) {
return <Badge color={record.value} text={record.value} />;
Copy link
Member

Choose a reason for hiding this comment

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

我们现在貌似没有方形色块这样的组件。 @MadCcc

Copy link
Member

Choose a reason for hiding this comment

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

Badge 有点小,用上面那个 span 吧。

Copy link
Member Author

Choose a reason for hiding this comment

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

Badge 有点小,用上面那个 span 吧。

其实都是 6px,应该可以参考这种样式
image

Copy link
Member

Choose a reason for hiding this comment

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

好像 Badge 也行,我还以为是个小圆点。

Copy link
Member

Choose a reason for hiding this comment

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

看了效果我反悔了,还是用这个样式吧。

图片

Copy link
Member Author

@Wxh16144 Wxh16144 Dec 7, 2022

Choose a reason for hiding this comment

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

好,那我看看如何去修改。
可能我们真的需要一个方形色块组件 @MadCcc

@codecov
Copy link

codecov bot commented Dec 7, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (d6e9ef6) compared to base (ed8fac4).
Patch has no changes to coverable lines.

❗ Current head d6e9ef6 differs from pull request most recent head 2f4bb65. Consider uploading reports for the commit 2f4bb65 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #39348   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          546       546           
  Lines         9366      9363    -3     
  Branches      2654      2652    -2     
=========================================
- Hits          9366      9363    -3     
Impacted Files Coverage Δ
components/style/compact-item.tsx 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@afc163
Copy link
Member

afc163 commented Dec 7, 2022

有演示页面看看么?

@MadCcc
Copy link
Member

MadCcc commented Dec 7, 2022

还是先用原来的吧,badge 没有阴影,白色就看不出来了
image

@afc163
Copy link
Member

afc163 commented Dec 7, 2022

可以加个边框和阴影:https://ngx-colors.web.app/

@Wxh16144
Copy link
Member Author

Wxh16144 commented Dec 7, 2022

那还是保持现状吧,不做修改

@Wxh16144 Wxh16144 closed this Dec 7, 2022
@MadCcc
Copy link
Member

MadCcc commented Dec 7, 2022

不是有宽度缩掉的问题么

@Wxh16144
Copy link
Member Author

Wxh16144 commented Dec 7, 2022

不是有宽度缩掉的问题么

哈哈,我是觉得改个这个感觉就没必要 PR 了。那我改一下,重新打开 :)

@Wxh16144 Wxh16144 reopened this Dec 7, 2022
@Wxh16144 Wxh16144 force-pushed the wuxh/site-custom-theme branch 2 times, most recently from d6e9ef6 to 2f4bb65 Compare December 7, 2022 14:04
@Wxh16144 Wxh16144 requested a review from afc163 December 7, 2022 14:10
@afc163 afc163 merged commit 4a80396 into ant-design:master Dec 7, 2022
Wxh16144 added a commit to Wxh16144-forks/ant-design that referenced this pull request Sep 13, 2023
This reverts commit 4a80396.

# Conflicts:
#	.dumi/theme/builtins/ColorChunk/index.tsx
#	.dumi/theme/builtins/TokenTable/index.tsx
#	docs/react/customize-theme.en-US.md
#	docs/react/customize-theme.zh-CN.md
afc163 added a commit that referenced this pull request Sep 20, 2023
* chore: update blog style

* Revert "chore: update blog style"

This reverts commit afc0a1d.

* Revert "site: update docs styles (#39348)"

This reverts commit 4a80396.

# Conflicts:
#	.dumi/theme/builtins/ColorChunk/index.tsx
#	.dumi/theme/builtins/TokenTable/index.tsx
#	docs/react/customize-theme.en-US.md
#	docs/react/customize-theme.zh-CN.md

* chore: revert

* chore:revert

* chore: rename props

* chore: update

* chore(deps): add `dumi-plugin-color-chunk` plugin

* chore: update docs

* chore: update

* Update package.json

Co-authored-by: afc163 <[email protected]>
Signed-off-by: 红 <[email protected]>

* docs: pick #44945

Co-authored-by: RedJue <[email protected]>

---------

Signed-off-by: 红 <[email protected]>
Signed-off-by: 红 <[email protected]>
Co-authored-by: MadCcc <[email protected]>
Co-authored-by: afc163 <[email protected]>
Co-authored-by: RedJue <[email protected]>
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.

3 participants