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

Use Quark as another component - make css styles available #6

Open
addania opened this issue Jun 20, 2020 · 0 comments
Open

Use Quark as another component - make css styles available #6

addania opened this issue Jun 20, 2020 · 0 comments
Assignees
Labels
Bug Something isn't working

Comments

@addania
Copy link
Collaborator

addania commented Jun 20, 2020

CSS tokens do not work on other than Quark components and they only work on css prop.

We have an example of using Quark as FontAwesomeIcon which we want to be able to style with size tokens:

gumption-ui/playground/src/examples/mail/SideBar/sidebar.tsx

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
 <Quark as={FontAwesomeIcon}
        icon={iconName}
        css={{
          width: 'large',
          height: 'large',
        }}/>

At the moment tokens large do not work. FontAwesomeIcon uses style prop to customize icons.

@addania addania added the Bug Something isn't working label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants