Giter VIP home page Giter VIP logo

figma-styled-components's People

Contributors

jhardy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

figma-styled-components's Issues

OptionButton & IconButton throw warning for `on` prop

Seems like React is trying to infer the on prop as a default HTML prop. Getting the following warning when rendering an IconButton or an OptionButton:

Warning: Received `false` for a non-boolean attribute `on`.

If you want to write it to the DOM, pass a string instead: on="false" or on={value.toString()}.

If you used to conditionally omit it with on={condition && value}, pass on={condition ? value : undefined} instead.
    in div (created by styled.div)
    in styled.div
    in button (created by styled.button)
    in styled.button
    in OptionButtonFactory (created by Styled(Styled(Styled(OptionButtonFactory))))
    in Styled(Styled(Styled(OptionButtonFactory))) (created by App)
    in section (created by styled.section)
    in styled.section (created by App)
    in App (created by App)
    in App

maybe could be fixed by renaming the on prop to isOn?

Inputs do not show bottom part of text in Safari

See screenshot:

Screen Shot 2019-08-24 at 10 11 58

There seem to be some shenanigans with height. Height of input is 12px, but line-height is 14px, so text is taller than input. Chrome and Firefox don't seem to mind that and render text outside of input, but Safari seems to be more strict.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.