-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(text-fields): Add pointer cursor (#31)
- Loading branch information
1 parent
c5a7976
commit ee97a07
Showing
3 changed files
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import { storiesOf } from '@storybook/react'; | |
|
||
import withPadding from './util/withPadding'; | ||
|
||
storiesOf('Forms - Text Fields', module) | ||
storiesOf('Text Field', module) | ||
.addWithJSX('Text field', () => | ||
withPadding( | ||
<div className="ray-field"> | ||
|
@@ -168,15 +168,23 @@ storiesOf('Forms - Text Fields', module) | |
.addWithJSX('Text field - compact', () => | ||
withPadding( | ||
<div className="ray-field ray-field--compact"> | ||
<input id="email" type="email" placeholder="[email protected]" /> | ||
<input | ||
id="email" | ||
type="email" | ||
placeholder="[email protected]" | ||
/> | ||
<label htmlFor="email">Email address</label> | ||
</div> | ||
) | ||
) | ||
.addWithJSX('Text field, active - compact', () => | ||
withPadding( | ||
<div className="ray-field ray-field--active ray-field--compact"> | ||
<input id="email" type="email" placeholder="[email protected]" /> | ||
<input | ||
id="email" | ||
type="email" | ||
placeholder="[email protected]" | ||
/> | ||
<label htmlFor="email">Email address</label> | ||
</div> | ||
) | ||
|
@@ -240,7 +248,10 @@ storiesOf('Forms - Text Fields', module) | |
</div> | ||
<div className="ray-field-wrapper"> | ||
<div className="ray-field ray-field__textarea ray-field--compact"> | ||
<textarea id="textarea" placeholder="Tell me, uh, something about yourself" /> | ||
<textarea | ||
id="textarea" | ||
placeholder="Tell me, uh, something about yourself" | ||
/> | ||
<label htmlFor="textarea">Notes</label> | ||
</div> | ||
</div> | ||
|