Be able to select preimage hash in Firefox (#3101)

* enable input to be able to selec on Firfox

* styling

* Update packages/page-democracy/src/Overview/PreImage.tsx

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
This commit is contained in:
Thibaut Sardan 2020-06-30 19:03:32 +02:00 committed by GitHub
parent 9f2cfb474e
commit 3450bcda1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,8 +80,8 @@ function PreImage ({ className = '', imageHash, isImminent: propsIsImminent, onC
onChange={setProposal}
/>
<Input
className='disabledLook'
help={t<string>('The hash of the selected proposal, use it for submitting the proposal')}
isDisabled
isDisabledError={!isMatched}
label={t<string>('preimage hash')}
value={encodedHash}
@ -127,4 +127,13 @@ export default React.memo(styled(PreImage)`
margin: 0.5rem 0;
text-align: right;
}
.disabledLook input {
background: transparent;
border-style: dashed;
&:focus{
background: transparent;
border-color: #d9d8d7;
}
}
`);