You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #61 on January 23, 2024 15:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
源码实现
按钮的状态变化: normal、hover、active、disabled
因此在没有此四种状态的时候,按钮应该有一些基本的属性。
有状态的时候
theme-colors bg-color 产生预定义样式的按钮状态,包含:border、color
各种状态的color、bg-color、border
背景色和文字颜色的函数关系, 比如:背景暗色、文字颜色应该是亮色
按钮大小
TODO 疑惑🤔 这边的 Size 大中小,怎么定义
大
,怎么定义小
呢?TODO 以目前来看,现在的
大
有些大,没有太多的场景需要使用到这么大的 buttonloading 状态使用
css animation
实现, 而非 Icon难点
css 优先级,
css 优先级可视化工具:https://specificity.keegan.st/
&:not(:disabled):not(.disabled)
与&:not(:disabled)
盒模型
状态:normal、hover、click、disabled
颜色:背景色、文字颜色、边框颜色
间距:padding、margin、border、line-height、height
状态:primary、success、info、warning、error、default、link
大小:large、normal、small
其他:圆角
border: 1px slid transparent
Beta Was this translation helpful? Give feedback.
All reactions