Appsmith 按钮颜色修改:将 Login 按钮字体颜色设为白色
您可以在 Button Variant 中添加以下 JavaScript 代码:
<Button
variant='primary'
text='Login'
onClick={() => console.log('Button clicked!')}
style={{color: '#ffffff'}}
/>
这将更改按钮的文本颜色为白色。请注意,您需要将按钮的 variant 设置为 'primary',否则可能无法应用文本颜色更改。
AI 优化版
原文地址:https://www.cveoy.top/t/topic/oepg 著作权归作者所有。请勿转载和采集!