Skip to content

Commit

Permalink
observability - exploratory view - update v7 button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiqueclarke committed May 14, 2021
1 parent bc2b846 commit 3148e7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function DataTypesCol({ seriesId }: { seriesId: string }) {
<FlexGroup direction="column" gutterSize="xs">
{dataTypes.map(({ id: dataTypeId, label }) => (
<EuiFlexItem key={dataTypeId}>
<EuiButton
<Button
size="s"
iconSide="right"
iconType="arrowRight"
Expand All @@ -53,7 +53,7 @@ export function DataTypesCol({ seriesId }: { seriesId: string }) {
}}
>
{label}
</EuiButton>
</Button>
</EuiFlexItem>
))}
</FlexGroup>
Expand All @@ -63,3 +63,7 @@ export function DataTypesCol({ seriesId }: { seriesId: string }) {
const FlexGroup = styled(EuiFlexGroup)`
width: 100%;
`;

const Button = styled(EuiButton)`
will-change: transform;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function ReportTypesCol({ seriesId, reportTypes }: Props) {
<FlexGroup direction="column" gutterSize="xs">
{reportTypes.map(({ id: reportType, label }) => (
<EuiFlexItem key={reportType}>
<EuiButton
<Button
fullWidth
size="s"
iconSide="right"
Expand All @@ -67,7 +67,7 @@ export function ReportTypesCol({ seriesId, reportTypes }: Props) {
}}
>
{label}
</EuiButton>
</Button>
</EuiFlexItem>
))}
</FlexGroup>
Expand All @@ -84,3 +84,7 @@ export const SELECTED_DATA_TYPE_FOR_REPORT = i18n.translate(
const FlexGroup = styled(EuiFlexGroup)`
width: 100%;
`;

const Button = styled(EuiButton)`
will-change: transform;
`;

0 comments on commit 3148e7e

Please sign in to comment.