Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

feat(Modal): Export modal component #51

Merged
merged 1 commit into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ storybook-static
lib
suir.stories.js
styleguide

*.iml
*.idea
6 changes: 3 additions & 3 deletions semantic/src/themes/tripwire/modules/modal.variables
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
@headerVerticalPadding: 1.25rem;
@headerHorizontalPadding: 1.5rem;
@headerPadding: @headerVerticalPadding @headerHorizontalPadding;
@headerBackground: @white;
@headerColor: @darkTextColor;
@headerBackground: @blue;
@headerColor: @white;
@headerFontSize: @huge;
@headerBoxShadow: none;
@headerFontWeight: bold;
Expand Down Expand Up @@ -64,7 +64,7 @@
/* Inner Close Position (Tablet/Mobile) */
@innerCloseTop: (@headerVerticalPadding - @closeHitBoxOffset + (@lineHeight - 1em));
@innerCloseRight: 1rem;
@innerCloseColor: @textColor;
@innerCloseColor: @white;

/* Mobile Positions */
@mobileHeaderPadding: 0.75rem 1rem;
Expand Down
18 changes: 18 additions & 0 deletions src/components/suir/modal/Modal.examples.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Full screen modal dialog with close button

const Modal = require('semantic-ui-react').Modal;
const Header = require('semantic-ui-react').Header;
const Button = require('semantic-ui-react').Button;

<Modal size='fullscreen' trigger={<Button>Show Modal</Button>} closeIcon='close'>
<Modal.Header>Select a Photo</Modal.Header>
<Modal.Content>
<Modal.Description>
<Header>Default Profile Image</Header>
<p>We've found the following gravatar image associated with your e-mail address.</p>
<p>Is it okay to use this photo?</p>
</Modal.Description>
</Modal.Content>
</Modal>


2 changes: 2 additions & 0 deletions src/components/suir/modal/Modal.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Modal from 'semantic-ui-react/dist/commonjs/modules/Modal'
export default Modal