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

n-form: labelFontWeight as theme override #3516

Closed
OrbisK opened this issue Aug 15, 2022 · 0 comments · Fixed by #4060
Closed

n-form: labelFontWeight as theme override #3516

OrbisK opened this issue Aug 15, 2022 · 0 comments · Fixed by #4060
Labels
feature request New feature or request priority: high

Comments

@OrbisK
Copy link
Collaborator

OrbisK commented Aug 15, 2022

This function solves the problem (这个功能解决的问题)

currently label font weight of NForm is just customizable with the label slot. Or label-style prop.
In NCheckbox/NRadio there is just a slot (default)

Expected API (期望的 API)

common: (for NFormItem,NCheckbox, ...)

const themeOverrides: GlobalThemeOverrides = {
    common: {
         labelFontWeight: '123'
    }
}
const themeOverrides: GlobalThemeOverrides = {
    Form: {
         labelFontWeight: '123'
    },
    Checkbox: {
         fontWeight: '123'
    },
    Radio: {
         fontWeight: '123'
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request priority: high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants