"hidden" props for button doesn't actually hide? #1253
-
I tried applying Using v0.3.1 |
Beta Was this translation helpful? Give feedback.
Answered by
atanasster
Nov 11, 2020
Replies: 1 comment
-
@cktang88 - I believe this is a bug and you can enter it as a new issue - In the meantime you can work around it using css or sx props: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cktang88
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@cktang88 - I believe this is a bug and you can enter it as a new issue -
<Button />
is forcing adisplay: 'inline-block',
without checking for ahidden
prop:theme-ui/packages/components/src/Button.js
Line 13 in f45a5a8
In the meantime you can work around it using css or sx props:
<Button css={{ visibility: "hidden" }}>Click me</Button>