Skip to content

Commit

Permalink
Fix zindex layering when connectLeft if focused with suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas committed Apr 8, 2019
1 parent 6973e8f commit 26b40b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,4 @@

.InputWrapper {
position: relative;
z-index: 1;
}
14 changes: 13 additions & 1 deletion stories/form/TextField.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { action } from '@storybook/addon-actions';
import { Autorenew } from '@sparkpost/matchbox-icons';
import { Autorenew, Search } from '@sparkpost/matchbox-icons';
import StoryContainer from '../storyHelpers/StoryContainer';
import { TextField, Button, Select, Tooltip } from '@sparkpost/matchbox';

Expand Down Expand Up @@ -79,4 +79,16 @@ export default storiesOf('Form|TextField', module)
suffix={<Autorenew />}
style={{ textAlign: 'right' }}
/>
)))

.add('with connected component and suffex', withInfo()(() => (
<TextField
id='id'
label='Date Range'
value='July 21, 2017 - July 28, 2017'
connectLeft={<Select options={
['Last 24 Hours', 'Last Week']
}/>}
suffix={<Search />}
/>
)));

0 comments on commit 26b40b6

Please sign in to comment.