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

Commit

Permalink
feat(Modal): Export modal component
Browse files Browse the repository at this point in the history
  • Loading branch information
jtruongtripwire committed Mar 20, 2017
1 parent 7d8587e commit 14fdf7d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
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

0 comments on commit 14fdf7d

Please sign in to comment.