Skip to content

Commit

Permalink
reorder label and input (#92)
Browse files Browse the repository at this point in the history
fix(input): reorder label and input to fix zIndex issue in safari
  • Loading branch information
l3satwik authored and ritz078 committed Sep 24, 2018
1 parent fcd5d42 commit 3a5cfb1
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 77 deletions.
10 changes: 5 additions & 5 deletions src/components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ class Input extends React.PureComponent<InputProps, InputState> {
onBlur={this.removeFocus}
onClick={onClick}
>
<label className={labelClassName}>
{placeholder}
{required && <span style={{ color: colors.red.base }}>&nbsp;*</span>}
</label>

<Input_
className={inputClassName}
{...inputProps}
Expand All @@ -123,6 +118,11 @@ class Input extends React.PureComponent<InputProps, InputState> {
readOnly={readOnly}
/>

<label className={labelClassName}>
{placeholder}
{required && <span style={{ color: colors.red.base }}>&nbsp;*</span>}
</label>

<div
className={highlightClassName}
style={{
Expand Down
Loading

1 comment on commit 3a5cfb1

@vercel
Copy link

@vercel vercel bot commented on 3a5cfb1 Sep 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://pebble-jvofxdndty.now.sh to the following alias.

Please sign in to comment.