ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
93.39k stars 51.04k forks source link

Outdated Button Theme Tokens Documentation #52615

Open lucasbozzo opened 1 week ago

lucasbozzo commented 1 week ago

Reproduction link

https://ant.design/components/button#design-token

Steps to reproduce

Scroll to the Design Token section

What is expected?

Documentation should not show tokens contentLineHeight, contentLineHeightLG or contentLineHeightSM, as they are no longer used after the PR https://github.com/ant-design/ant-design/pull/52353

What is actually happening?

They have been deprecated. Are no longer used. No matter what value provided, it is not changing the Button styles

Environment Info
antd 5.23.1
React react
System N/A
Browser N/A
petercat-assistant[bot] commented 1 week ago

It seems that the documentation for the Button component's theme tokens is outdated. The tokens contentLineHeight, contentLineHeightLG, and contentLineHeightSM are still being shown, even though they have been deprecated and are no longer used after the mentioned pull request.

To address this issue, the documentation should be updated to remove these deprecated tokens. This will ensure that users are not misled by outdated information.

If you have any further questions or need assistance with something else related to Ant Design, feel free to ask!

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.