mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
modal fixes
This commit is contained in:
parent
4b489811ac
commit
5adba86e5e
@ -16,14 +16,14 @@
|
|||||||
.modal {
|
.modal {
|
||||||
padding: $spacer;
|
padding: $spacer;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
background: $brand-white;
|
background: $body-background;
|
||||||
margin: $spacer auto;
|
margin: $spacer auto;
|
||||||
max-width: $break-point--small;
|
max-width: $break-point--small;
|
||||||
position: relative;
|
position: relative;
|
||||||
animation: moveUp .2s ease-out backwards;
|
animation: moveUp .2s ease-out backwards;
|
||||||
|
|
||||||
@media (min-width: $break-point--small) {
|
@media (min-width: $break-point--small) {
|
||||||
padding: $spacer * 2 $spacer;
|
padding: $spacer * 2 $spacer * 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
|
14
client/src/components/atoms/Modal.test.tsx
Normal file
14
client/src/components/atoms/Modal.test.tsx
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import { render } from '@testing-library/react'
|
||||||
|
import Modal from './Modal'
|
||||||
|
|
||||||
|
describe('Modal', () => {
|
||||||
|
it('renders without crashing', () => {
|
||||||
|
const { container } = render(
|
||||||
|
<Modal title="Hello" isOpen toggleModal={() => null}>
|
||||||
|
Hello
|
||||||
|
</Modal>
|
||||||
|
)
|
||||||
|
expect(container.firstChild).toBeInTheDocument()
|
||||||
|
})
|
||||||
|
})
|
@ -11,10 +11,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
|
background: $brand-white;
|
||||||
padding: $spacer;
|
padding: $spacer;
|
||||||
border: 1px solid $brand-grey-lighter;
|
border: 1px solid $brand-grey-lighter;
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
margin-bottom: $spacer;
|
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
|
@ -45,6 +45,7 @@ export default class Report extends PureComponent<
|
|||||||
name="comment"
|
name="comment"
|
||||||
label="Comment"
|
label="Comment"
|
||||||
help="Briefly describe what is wrong with this asset."
|
help="Briefly describe what is wrong with this asset."
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
<Button primary>Report Data Set</Button>
|
<Button primary>Report Data Set</Button>
|
||||||
</Form>
|
</Form>
|
||||||
|
Loading…
Reference in New Issue
Block a user