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

modalTitleStyle being overwritten #741

Open
AounNaqvi173 opened this issue Feb 12, 2024 · 0 comments
Open

modalTitleStyle being overwritten #741

AounNaqvi173 opened this issue Feb 12, 2024 · 0 comments

Comments

@AounNaqvi173
Copy link

modalTitleStyle props are not working as the textStyle is overwriting it

const _modalTitleStyle = useMemo(
() => [
THEME.modalTitle,
...[modalTitleStyle].flat(),
...[textStyle].flat(),
],
[textStyle, modalTitleStyle, THEME],
);

this is not good for styling the modal header if we move ...[textStyle].flat() above ...[modalTitleStyle].flat(), it will work fine and will not overwrite the modalTitleStyle and if the user does not pass modalTitleStyke it will still work as expected

here is the problem :

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

No branches or pull requests

1 participant