Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

test #51

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
2 changes: 1 addition & 1 deletion less/select.less
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
}

.crane-select-input-group {
border: 1px solid @crane-select-border-color;
border: 4px solid @crane-select-border-color;
border-radius: @crane-select-border-radius;
background-color: @crane-select-bg-color;
/* make table so arrow and clear button can vertically center */
Expand Down
18 changes: 18 additions & 0 deletions stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,24 @@ stories.add('with SimpleSelect', () => (
/>
))

stories.add('with SimpleSelect and open', () => (
<BasicSelect
autoCloseMenu={boolean('Auto Close Menu', true)}
clearable={boolean('Clearable', false)}
clearInputOnBlur={boolean('Clear Input on Blur', true)}
clearInputOnSelect={boolean('Clear Input on Select', true)}
isLoading={boolean('Is Loading', false)}
isOpen={boolean('Is Open', true)}
labelKey="name"
openOnClick={boolean('Open On Click', true)}
openOnEmptyInput={boolean('Open On Empty Input', true)}
options={states}
placeholder={text('Placeholder', 'Select value...')}
showInput={boolean('Show Input', false)}
valueKey="abbreviation"
/>
))

stories.add('with SimpleSelect and string value', () => (
<SimpleSelectWithStringValue
autoCloseMenu={boolean('Auto Close Menu', true)}
Expand Down