Skip to content

Commit fb16839

Browse files
committed
tweaks
1 parent f1db28e commit fb16839

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

stories/PowerSelect.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const PowerSelectWithHooks = props => {
2323
setCountry(args.option);
2424
}}
2525
optionLabelPath={text('optionLabelPath', 'name')}
26-
placeholder={text('placeholder', 'Select your favourite country')}
26+
placeholder={text('placeholder', 'Select your favorite country')}
2727
disabled={boolean('disabled', false)}
2828
showClear={boolean('showClear', true)}
2929
searchEnabled={boolean('searchEnabled', true)}
@@ -42,7 +42,7 @@ powerSelect.add('customOptionComponent', () => (
4242
return (
4343
<div>
4444
<img className="flag" src={option.flag} />
45-
<span>{option.name}</span>
45+
<span>{option.name}&nbsp;</span>
4646
<small className="code">{option.code}</small>
4747
</div>
4848
);

stories/PowerSelectMultiple.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const PowerSelectMultipleWithHooks = props => {
1919
setSelectedCountries(args.options);
2020
}}
2121
optionLabelPath={text('optionLabelPath', 'name')}
22-
placeholder={text('placeholder', 'Select your favourite countries')}
22+
placeholder={text('placeholder', 'Select your favorite countries')}
2323
disabled={boolean('disabled', false)}
2424
showClear={boolean('showClear', true)}
2525
searchIndices={array('searchIndices', ['name', 'code'])}

stories/PowerSelectTypeAhead.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const TypeAheadWithHooks = () => {
1919
setCountry(args.option);
2020
}}
2121
optionLabelPath={text('optionLabelPath', 'name')}
22-
placeholder={text('placeholder', 'Select your favourite country')}
22+
placeholder={text('placeholder', 'Select your favorite country')}
2323
disabled={boolean('disabled', false)}
2424
showClear={boolean('showClear', true)}
2525
searchPlaceholder={text('searchPlaceholder', 'Search...')}

docs/app/index.scss renamed to stories/index.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ html, body {
3737
@include placeholder()
3838
}
3939

40-
.icon {
41-
display: inline-block;
42-
width: 1em;
43-
height: 1em;
44-
stroke-width: 0;
45-
stroke: currentColor;
46-
fill: currentColor;
47-
}
48-
4940
.flag {
5041
width: 20px;
5142
height: 13px;
@@ -77,8 +68,17 @@ html, body {
7768
border-top: 1px dashed rgba(89, 96, 206, 0.5);
7869
}
7970

71+
.code {
72+
float: right;
73+
font-size: 11px;
74+
color: #666;
75+
letter-spacing: 2px;
76+
margin-top: 4px;
77+
}
78+
8079
.highlight {
8180
background-color: yellow;
81+
font-weight: bold;
8282
}
8383

8484
.help {

stories/index.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import 'src/styles';
2-
import 'docs/app/index.scss';
2+
import './index.scss';

0 commit comments

Comments
 (0)