1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-04 00:18:01 +01:00

fix: Prevent text highlighting overlap between chips (#188)

This commit is contained in:
Valentin Jonovs 2019-10-08 11:58:35 +02:00 committed by Ivar Conradi Østhus
parent c536a42c79
commit 0989f8e681
2 changed files with 61 additions and 35 deletions

View File

@ -5,6 +5,13 @@ exports[`renders correctly when disabled 1`] = `
<p> <p>
featureName featureName
</p> </p>
<div
style={
Object {
"display": "flex",
}
}
>
<react-mdl-Chip <react-mdl-Chip
style={ style={
Object { Object {
@ -23,6 +30,7 @@ exports[`renders correctly when disabled 1`] = `
> >
item2 item2
</react-mdl-Chip> </react-mdl-Chip>
</div>
</div> </div>
`; `;
@ -32,6 +40,13 @@ exports[`renders strategy with empty list as param 1`] = `
<p> <p>
featureName featureName
</p> </p>
<div
style={
Object {
"display": "flex",
}
}
/>
<div <div
style={ style={
Object { Object {
@ -73,6 +88,13 @@ exports[`renders strategy with list as param 1`] = `
<p> <p>
featureName featureName
</p> </p>
<div
style={
Object {
"display": "flex",
}
}
>
<react-mdl-Chip <react-mdl-Chip
onClose={[Function]} onClose={[Function]}
style={ style={
@ -93,6 +115,7 @@ exports[`renders strategy with list as param 1`] = `
> >
item2 item2
</react-mdl-Chip> </react-mdl-Chip>
</div>
<div <div
style={ style={
Object { Object {

View File

@ -54,6 +54,8 @@ export default class InputList extends Component {
return ( return (
<div> <div>
<p>{name}</p> <p>{name}</p>
<div style={{ display: 'flex' }}>
{list.map((entryValue, index) => ( {list.map((entryValue, index) => (
<Chip <Chip
key={index + entryValue} key={index + entryValue}
@ -63,6 +65,7 @@ export default class InputList extends Component {
{entryValue} {entryValue}
</Chip> </Chip>
))} ))}
</div>
{disabled ? ( {disabled ? (
'' ''