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

Unable to style font size of the numpad #155

Open
ihmcjacky opened this issue Oct 16, 2021 · 0 comments
Open

Unable to style font size of the numpad #155

ihmcjacky opened this issue Oct 16, 2021 · 0 comments

Comments

@ihmcjacky
Copy link

After reading the README, it mentions Any css style is customizable using styled components..

I tried to use styled components, wrapping the NumPad components with desired styles, but it is not applying to the numpad's font, here is the code I have written.

const NumPadComponent = () => (
        <NumPad.Number
            onChange={handleAmtChange}
            theme={theme.numPad}
            negative={false}
            label={label}
        >
            {el}
        </NumPad.Number>
    )

const StyledNumPadComponent = styled(NumPadComponent)`
    font-size: 3.5rem;
`

Thank you

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