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

textStyle1 styles not been applied #233

Closed
rick427 opened this issue Aug 9, 2021 · 3 comments
Closed

textStyle1 styles not been applied #233

rick427 opened this issue Aug 9, 2021 · 3 comments
Labels
bug Something isn't working v2 Bug fixed / feature added in v2

Comments

@rick427
Copy link

rick427 commented Aug 9, 2021

Hi, so i tried changing the style of the text1 prop like so:

error: ({ text1, text2, ...rest }) => (
        <BaseToast
            {...rest}
            leadingIcon={ICONS.error}
            style={{ borderLeftColor: COLORS.danger }}
            text1Style={{
                ...FONTS.h6
            }}
            text2Style={{
                ...FONTS.body5
            }}
            text1={text1}
            text2={text2}
        />
    ),

Problem is that the styles in FONTS.h6 i.e ( fontFamily: 'Poppins-Regular', fontSize: 12 ) are not been applied. What am i doing wrong pls ?

@max-frai
Copy link

Same for me, the styling is not applied.

@mghozynAGIT
Copy link

Same for me, the styling in text1 is not applied.
It only works after trying insert fontWeight: 'normal' in text1Style

@calintamas calintamas added bug Something isn't working v2 Bug fixed / feature added in v2 labels Oct 21, 2021
@calintamas
Copy link
Owner

Fixed in v2.0.0. Read the complete changelog.

If you find any issues with the v2 implementation, feel free to reopen this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2 Bug fixed / feature added in v2
Projects
None yet
Development

No branches or pull requests

4 participants