[APM] Use form label for Transaction type selector (#28322) (#28478)

* Use form label for type selector

Removes the inline copy for filtering by transaction type and uses the FormRow label as a substitute.

* [APM] Updated test snapshot
This commit is contained in:
Casper Hübertz 2019-01-10 14:03:36 +01:00 committed by GitHub
parent f32aeffa5f
commit cdbefd368d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -6,6 +6,7 @@ exports[`TransactionOverviewView should render with type filter controls 1`] = `
describedByIds={Array []}
fullWidth={false}
hasEmptyLabelSpace={false}
label="Filter by type"
>
<EuiSelect
compressed={false}
@ -16,11 +17,11 @@ exports[`TransactionOverviewView should render with type filter controls 1`] = `
options={
Array [
Object {
"text": "Filter by type: a",
"text": "a",
"value": "a",
},
Object {
"text": "Filter by type: b",
"text": "b",
"value": "b",
},
]

View file

@ -48,10 +48,10 @@ export class TransactionOverviewView extends React.Component<
return (
<React.Fragment>
{serviceTransactionTypes.length > 1 ? (
<EuiFormRow>
<EuiFormRow label="Filter by type">
<EuiSelect
options={serviceTransactionTypes.map(type => ({
text: `Filter by type: ${type}`,
text: `${type}`,
value: type
}))}
value={transactionType}