Skip to content

Commit

Permalink
[Observability] [Exploratory view] update v7 button styles (#100113)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
dominiqueclarke and kibanamachine committed May 14, 2021
1 parent fd7c3b6 commit c76e3ea
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 c76e3ea

Please sign in to comment.